Class ConstraintDefinitionContribution<A extends Annotation>
java.lang.Object
org.hibernate.validator.internal.engine.constraintdefinition.ConstraintDefinitionContribution<A>
Type-safe wrapper class for a constraint annotation and its potential list of constraint validators.
- Author:
- Hardy Ferentschik
-
Constructor Summary
ConstructorDescriptionConstraintDefinitionContribution
(Class<A> constraintType, List<ConstraintValidatorDescriptor<A>> validatorDescriptors, boolean includeExisting) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the constraint annotation type for which this instance provides constraint validator instances.Returns a list of constraint validator descriptors for the constraint type of this instance.int
hashCode()
boolean
Whether or not the existing constraint validators should be kept or not.toString()
-
Constructor Details
-
ConstraintDefinitionContribution
public ConstraintDefinitionContribution(Class<A> constraintType, List<ConstraintValidatorDescriptor<A>> validatorDescriptors, boolean includeExisting)
-
-
Method Details
-
getConstraintType
Returns the constraint annotation type for which this instance provides constraint validator instances. -
getValidatorDescriptors
Returns a list of constraint validator descriptors for the constraint type of this instance. -
includeExisting
public boolean includeExisting()Whether or not the existing constraint validators should be kept or not.- Returns:
true
if the existing constraint validators for the constraint type wrapped by this instance should be kept,false
otherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-