Class Parameters

java.lang.Object
org.opt4j.operator.Parameters

public class Parameters extends Object
The Parameters is a class for the identification of types/classes of a generic parameter.
  • Constructor Details

    • Parameters

      public Parameters()
  • Method Details

    • 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 generic
      object - the current implementation of the interface
      variable - 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)