Interface HasConstructors<T extends HasConstructors<T>>

  • Type Parameters:
    T - the extending type
    All Known Subinterfaces:
    Class, Enum

    public interface HasConstructors<T extends HasConstructors<T>>
    A trait for models that contain Constructor components.
    Since:
    2.0
    Author:
    Emil Forslund
    • Method Detail

      • add

        default T add​(Constructor constr)
        Adds the specified Constructor to this model.
        Parameters:
        constr - the new child
        Returns:
        a reference to this
      • getConstructors

        List<Constructor> getConstructors()
        Returns a list of all the constructors of this model.

        The list returned must be mutable for changes!

        Returns:
        the constructors