Package org.opt4j.operator
Class Parameters
- java.lang.Object
-
- org.opt4j.operator.Parameters
-
public class Parameters extends Object
TheParametersis a class for the identification of types/classes of a generic parameter.
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Collection<Class<?>>getAllClasses(Class<?> clazz)static Class<?>getClass(Type type)Returns the class of a type.protected static Collection<ParameterizedType>getParameterizedTypes(Collection<Class<?>> classes)static TypegetType(Class<?> clazz, Object object, String variable)Returns the type of the generic of the interface or class of an class for an object.protected static TypegetType(Class<?> clazz, String variable, Map<Type,ParameterizedType> map)protected static Map<Type,ParameterizedType>getTypes(Class<?> clazz)
-
-
-
Method Detail
-
getClass
public static Class<?> getClass(Type type)
Returns the class of a type.- Parameters:
type- the type- Returns:
- the class
-
getType
public static Type getType(Class<?> clazz, Object object, String variable)
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
protected static Type getType(Class<?> clazz, String variable, Map<Type,ParameterizedType> map)
-
getTypes
protected static Map<Type,ParameterizedType> getTypes(Class<?> clazz)
-
getAllClasses
protected static Collection<Class<?>> getAllClasses(Class<?> clazz)
-
getParameterizedTypes
protected static Collection<ParameterizedType> getParameterizedTypes(Collection<Class<?>> classes)
-
-