Class Parameters


  • public class Parameters
    extends java.lang.Object
    The Parameters is 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 java.util.Collection<java.lang.Class<?>> getAllClasses​(java.lang.Class<?> clazz)  
      static java.lang.Class<?> getClass​(java.lang.reflect.Type type)
      Returns the class of a type.
      protected static java.util.Collection<java.lang.reflect.ParameterizedType> getParameterizedTypes​(java.util.Collection<java.lang.Class<?>> classes)  
      static java.lang.reflect.Type getType​(java.lang.Class<?> clazz, java.lang.Object object, java.lang.String variable)
      Returns the type of the generic of the interface or class of an class for an object.
      protected static java.lang.reflect.Type getType​(java.lang.Class<?> clazz, java.lang.String variable, java.util.Map<java.lang.reflect.Type,​java.lang.reflect.ParameterizedType> map)  
      protected static java.util.Map<java.lang.reflect.Type,​java.lang.reflect.ParameterizedType> getTypes​(java.lang.Class<?> clazz)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Parameters

        public Parameters()
    • Method Detail

      • getClass

        public static java.lang.Class<?> getClass​(java.lang.reflect.Type type)
        Returns the class of a type.
        Parameters:
        type - the type
        Returns:
        the class
      • getType

        public static java.lang.reflect.Type getType​(java.lang.Class<?> clazz,
                                                     java.lang.Object object,
                                                     java.lang.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 java.lang.reflect.Type getType​(java.lang.Class<?> clazz,
                                                        java.lang.String variable,
                                                        java.util.Map<java.lang.reflect.Type,​java.lang.reflect.ParameterizedType> map)
      • getTypes

        protected static java.util.Map<java.lang.reflect.Type,​java.lang.reflect.ParameterizedType> getTypes​(java.lang.Class<?> clazz)
      • getAllClasses

        protected static java.util.Collection<java.lang.Class<?>> getAllClasses​(java.lang.Class<?> clazz)
      • getParameterizedTypes

        protected static java.util.Collection<java.lang.reflect.ParameterizedType> getParameterizedTypes​(java.util.Collection<java.lang.Class<?>> classes)