Package kos.core.validation
Class DefaultValidation.AlwaysValid
- java.lang.Object
-
- kos.core.validation.DefaultValidation.AlwaysValid
-
- All Implemented Interfaces:
Validation<Object>
- Enclosing class:
- DefaultValidation
static class DefaultValidation.AlwaysValid extends Object implements Validation<Object>
AValidationthat assume all objects are valid. It was designed as an optimistic-validator for cases where no validation was defined by the developer.
-
-
Constructor Summary
Constructors Constructor Description AlwaysValid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetTypeOfTheObjectBeingValidated()Returns a static representation of the object being validated.io.vertx.core.Future<Object>validate(Object object, Class<Object> targetClass)Validates theobject.
-
-
-
Method Detail
-
getTypeOfTheObjectBeingValidated
public Class getTypeOfTheObjectBeingValidated()
Description copied from interface:ValidationReturns a static representation of the object being validated.- Specified by:
getTypeOfTheObjectBeingValidatedin interfaceValidation<Object>
-
validate
public io.vertx.core.Future<Object> validate(Object object, Class<Object> targetClass)
Description copied from interface:ValidationValidates theobject. It is expected that the validated object will be returned in the successfulFutureresult.- Specified by:
validatein interfaceValidation<Object>- Parameters:
object- the object to be validated
-
-