Class TypeVariables
- java.lang.Object
-
- org.hibernate.validator.internal.util.TypeVariables
-
public class TypeVariables extends Object
Provides some utility methods for TypeVariables.- Author:
- Guillaume Smet
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeVariable<?>getActualTypeParameter(TypeVariable<?> typeParameter)static Class<?>getContainerClass(TypeVariable<?> typeParameter)static TypegetContainerElementType(Type type, TypeVariable<?> typeParameter)static IntegergetTypeParameterIndex(TypeVariable<?> typeParameter)static StringgetTypeParameterName(Class<?> clazz, int typeParameterIndex)static booleanisAnnotatedObject(TypeVariable<?> typeParameter)static booleanisArrayElement(TypeVariable<?> typeParameter)static booleanisInternal(TypeVariable<?> typeParameter)
-
-
-
Method Detail
-
getContainerClass
public static Class<?> getContainerClass(TypeVariable<?> typeParameter)
-
getActualTypeParameter
public static TypeVariable<?> getActualTypeParameter(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)
-
-