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>
A Validation that assume all objects are valid. It was designed as an optimistic-validator for cases where no validation was defined by the developer.
  • Constructor Details

    • AlwaysValid

      AlwaysValid()
  • Method Details

    • getTypeOfTheObjectBeingValidated

      public Class getTypeOfTheObjectBeingValidated()
      Description copied from interface: Validation
      Returns a static representation of the object being validated.
      Specified by:
      getTypeOfTheObjectBeingValidated in interface Validation<Object>
    • validate

      public io.vertx.core.Future<Object> validate(Object object, Class<Object> targetClass)
      Description copied from interface: Validation
      Validates the object. It is expected that the validated object will be returned in the successful Future result.
      Specified by:
      validate in interface Validation<Object>
      Parameters:
      object - the object to be validated