Package org.opt4j.operator
Class Parameters
java.lang.Object
org.opt4j.operator.Parameters
The
Parameters is a class for the identification of types/classes of
a generic parameter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Collection<Class<?>>getAllClasses(Class<?> clazz) static Class<?>Returns the class of a type.protected static Collection<ParameterizedType>getParameterizedTypes(Collection<Class<?>> classes) static TypeReturns the type of the generic of the interface or class of an class for an object.protected static Typeprotected static Map<Type,ParameterizedType>
-
Constructor Details
-
Parameters
public Parameters()
-
-
Method Details
-
getClass
Returns the class of a type.- Parameters:
type- the type- Returns:
- the class
-
getType
Returns the type of the generic of the interface or class of an class for an object.- Parameters:
clazz- the interface with the undefined genericobject- the current implementation of the interfacevariable- the identifier- Returns:
- the implemented type of the generic
-
getType
-
getTypes
-
getAllClasses
-
getParameterizedTypes
-