Class ConstrainedType
java.lang.Object
org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
org.hibernate.validator.internal.metadata.raw.ConstrainedType
- All Implemented Interfaces:
Iterable<MetaConstraint<?>>
,ConstrainedElement
Represents a Java type and all its associated meta-data relevant in the
context of bean validation, for instance its constraints. Only class level
meta-data is represented by this type, but not meta-data for any members.
- Author:
- Gunnar Morling
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.validator.internal.metadata.raw.ConstrainedElement
ConstrainedElement.ConstrainedElementKind
-
Field Summary
Fields inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
cascadingMetaDataBuilder, constraints, source, typeArgumentConstraints
-
Constructor Summary
ConstructorsConstructorDescriptionConstrainedType
(ConfigurationSource source, Class<?> beanClass, Set<MetaConstraint<?>> constraints) Creates a new type meta data object. -
Method Summary
Methods inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
getCascadingMetaDataBuilder, getConstraints, getKind, getSource, getTypeArgumentConstraints, isConstrained, iterator, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConstrainedType
public ConstrainedType(ConfigurationSource source, Class<?> beanClass, Set<MetaConstraint<?>> constraints) Creates a new type meta data object.- Parameters:
source
- The source of meta data.beanClass
- The represented type.constraints
- The constraints of the represented type, if any.
-
-
Method Details
-
getBeanClass
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractConstrainedElement
-
equals
- Overrides:
equals
in classAbstractConstrainedElement
-