Class ConstraintDefinitionContribution<A extends Annotation>

java.lang.Object
org.hibernate.validator.internal.engine.constraintdefinition.ConstraintDefinitionContribution<A>

public class ConstraintDefinitionContribution<A extends Annotation> extends Object
Type-safe wrapper class for a constraint annotation and its potential list of constraint validators.
Author:
Hardy Ferentschik
  • Constructor Details

  • Method Details

    • getConstraintType

      public Class<A> getConstraintType()
      Returns the constraint annotation type for which this instance provides constraint validator instances.
    • getValidatorDescriptors

      public List<ConstraintValidatorDescriptor<A>> 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object