Class Parameters


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

      • Parameters

        public Parameters()
    • 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 generic
        object - the current implementation of the interface
        variable - the identifier
        Returns:
        the implemented type of the generic