Module rxmicro.validation
Package io.rxmicro.validation.validator
Class RequiredConstraintValidator<T>
- java.lang.Object
-
- io.rxmicro.validation.validator.RequiredConstraintValidator<T>
-
- Type Parameters:
T- the type to validate
- All Implemented Interfaces:
ConstraintValidator<T>
public final class RequiredConstraintValidator<T> extends Object implements ConstraintValidator<T>
Validator for the required constraint.- Since:
- 0.1
- Author:
- nedis
- See Also:
Nullable,NullableArrayItem
-
-
Constructor Summary
Constructors Constructor Description RequiredConstraintValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(T actual, HttpModelType httpModelType, String modelName)Validates the single actual.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.rxmicro.validation.ConstraintValidator
validate, validateList, validateList
-
-
-
-
Method Detail
-
validate
public void validate(T actual, HttpModelType httpModelType, String modelName)
Description copied from interface:ConstraintValidatorValidates the single actual.The state of the
actualmust not be altered.- Specified by:
validatein interfaceConstraintValidator<T>- Parameters:
actual- the actual value to validatehttpModelType- the http model typemodelName- the parameter or header name
-
-