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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Class<A>
getConstraintType()
java.lang.Class<T>
getTargetType()
int
hashCode()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-