Module com.speedment.common.codegen
Interface HasImplements<T extends HasImplements<T>>
-
- Type Parameters:
T- the extending type
- All Known Subinterfaces:
Class,ClassOrInterface<T>,Enum,Interface
public interface HasImplements<T extends HasImplements<T>>A trait for models that have interfaces as supertypes.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tadd(Type interf)Adds the specified interface to the list of implemented interfaces of this model.List<Type>getInterfaces()Returns a list of all the interfaces implemented by this model.default Timplement(Type interf)Adds the specified interface to the list of implemented interfaces of this model.default Timplement(Type interf, Type... params)Adds the specified interface to the list of implemented interfaces of this model.default Timplement(Type interf, String... params)Adds the specified interface to the list of implemented interfaces of this model.
-
-
-
Method Detail
-
add
default T add(Type interf)
Adds the specified interface to the list of implemented interfaces of this model. The type should represent an interface.- Parameters:
interf- the implemented interface- Returns:
- a reference to this
-
implement
default T implement(Type interf)
Adds the specified interface to the list of implemented interfaces of this model. The type should represent an interface. This method is a synonym foradd(Type).- Parameters:
interf- the implemented interface- Returns:
- a reference to this
- Since:
- 2.5
-
implement
default T implement(Type interf, Type... params)
Adds the specified interface to the list of implemented interfaces of this model. This method will construct a parameterized type with all the specified type parameters as generic arguments. The type should represent an interface.- Parameters:
interf- the implemented interfaceparams- the generic types of that interface- Returns:
- a reference to this
- Since:
- 2.5
-
implement
default T implement(Type interf, String... params)
Adds the specified interface to the list of implemented interfaces of this model. This method will construct a parameterized type with all the specified type parameters as generic arguments. The type should represent an interface.- Parameters:
interf- the implemented interfaceparams- the generic types of that interface- Returns:
- a reference to this
- Since:
- 2.5
-
-