Class DefaultConstraintValidators.ValidatorKey<A extends java.lang.annotation.Annotation,T>
- java.lang.Object
-
- io.micronaut.validation.validator.constraints.DefaultConstraintValidators.ValidatorKey<A,T>
-
- Type Parameters:
A- The annotation typeT- The target type.
- Enclosing class:
- DefaultConstraintValidators
protected final class DefaultConstraintValidators.ValidatorKey<A extends java.lang.annotation.Annotation,T> extends java.lang.ObjectKey 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.Class<A>getConstraintType()java.lang.Class<T>getTargetType()inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-