Class ArrayElement
- java.lang.Object
-
- org.hibernate.validator.internal.engine.valueextraction.ArrayElement
-
- All Implemented Interfaces:
AnnotatedElement,Type,TypeVariable<Class<?>>
public class ArrayElement extends Object implements TypeVariable<Class<?>>
A pseudo type variable which is used to represent constraints applied to the elements of an array.- Author:
- Gunnar Morling, Guillaume Smet
-
-
Constructor Summary
Constructors Constructor Description ArrayElement(AnnotatedArrayType annotatedArrayType)ArrayElement(Type arrayType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AnnotatedType[]getAnnotatedBounds()<T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Annotation[]getAnnotations()Type[]getBounds()Class<?>getContainerClass()Annotation[]getDeclaredAnnotations()Class<?>getGenericDeclaration()StringgetName()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Constructor Detail
-
ArrayElement
public ArrayElement(AnnotatedArrayType annotatedArrayType)
-
ArrayElement
public ArrayElement(Type arrayType)
-
-
Method Detail
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
getBounds
public Type[] getBounds()
- Specified by:
getBoundsin interfaceTypeVariable<Class<?>>
-
getGenericDeclaration
public Class<?> getGenericDeclaration()
- Specified by:
getGenericDeclarationin interfaceTypeVariable<Class<?>>
-
getName
public String getName()
- Specified by:
getNamein interfaceTypeVariable<Class<?>>
-
getAnnotatedBounds
public AnnotatedType[] getAnnotatedBounds()
- Specified by:
getAnnotatedBoundsin interfaceTypeVariable<Class<?>>
-
getContainerClass
public Class<?> getContainerClass()
-
-