Interface Validator<T>

Type Parameters:
T - input type accepted by the validator
All Known Implementing Classes:
FieldMappingsValidator, FilterableFieldValidator, QueryParamNameValidator, SortableFieldValidator

public interface Validator<T>
Generic contract for validators that enforce library-specific constraints on an input object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(T object)
    Validates the supplied object and throws an exception when a constraint is violated.
  • Method Details

    • validate

      void validate(T object)
      Validates the supplied object and throws an exception when a constraint is violated.
      Parameters:
      object - object to validate