Package kos.api

Interface Validation<T>

All Known Implementing Classes:
DefaultValidation, DefaultValidation.AlwaysValid

public interface Validation<T>
A validation rule for the given type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a static representation of the object being validated.
    io.vertx.core.Future<T>
    validate(T object, Class<T> targetClass)
    Validates the object.
  • Method Details

    • getTypeOfTheObjectBeingValidated

      Class<T> getTypeOfTheObjectBeingValidated()
      Returns a static representation of the object being validated.
    • validate

      io.vertx.core.Future<T> validate(T object, Class<T> targetClass)
      Validates the object. It is expected that the validated object will be returned in the successful Future result.
      Parameters:
      object - the object to be validated
      targetClass -