Class TypeVariables


  • public class TypeVariables
    extends Object
    Provides some utility methods for TypeVariables.
    Author:
    Guillaume Smet
    • Method Detail

      • getContainerClass

        public static Class<?> getContainerClass​(TypeVariable<?> typeParameter)
      • isInternal

        public static boolean isInternal​(TypeVariable<?> typeParameter)
      • isAnnotatedObject

        public static boolean isAnnotatedObject​(TypeVariable<?> typeParameter)
      • isArrayElement

        public static boolean isArrayElement​(TypeVariable<?> typeParameter)
      • getTypeParameterName

        public static String getTypeParameterName​(Class<?> clazz,
                                                  int typeParameterIndex)
      • getTypeParameterIndex

        public static Integer getTypeParameterIndex​(TypeVariable<?> typeParameter)
      • getContainerElementType

        public static Type getContainerElementType​(Type type,
                                                   TypeVariable<?> typeParameter)