Class DefaultConstraintValidators.ValidatorKey<A extends java.lang.annotation.Annotation,​T>

  • Type Parameters:
    A - The annotation type
    T - The target type.
    Enclosing class:
    DefaultConstraintValidators

    protected final class DefaultConstraintValidators.ValidatorKey<A extends java.lang.annotation.Annotation,​T>
    extends java.lang.Object
    Key for caching validators.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidatorKey​(java.lang.Class<A> constraintType, java.lang.Class<T> targetType)
      The key to lookup the validator.
    • Constructor Detail

      • ValidatorKey

        public ValidatorKey​(@NonNull
                            java.lang.Class<A> constraintType,
                            @NonNull
                            java.lang.Class<T> targetType)
        The key to lookup the validator.
        Parameters:
        constraintType - THe constraint type
        targetType - The target type
    • Method Detail

      • getConstraintType

        public java.lang.Class<A> getConstraintType()
        Returns:
        The constraint type
      • getTargetType

        public java.lang.Class<T> getTargetType()
        Returns:
        The target type
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object