Module com.speedment.common.codegen
Interface HasConstructors<T extends HasConstructors<T>>
-
- Type Parameters:
T- the extending type
public interface HasConstructors<T extends HasConstructors<T>>A trait for models that containConstructorcomponents.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tadd(Constructor constr)Adds the specifiedConstructorto this model.List<Constructor>getConstructors()Returns a list of all the constructors of this model.
-
-
-
Method Detail
-
add
default T add(Constructor constr)
Adds the specifiedConstructorto 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
-
-