Interface Validator<T>

Type Parameters:
T - Type of validation value.
All Known Implementing Classes:
CoordXValidator, CoordYValidator, DistanceValidator, LocationNameValidator, LocationXValidator, LocationYZValidator, NameValidator, RouteValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Validator<T>
Base validator. You should implement it for use in handlers.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    validate(T value)
    Provides validation method.
  • Method Details

    • validate

      boolean validate(T value)
      Provides validation method.
      Parameters:
      value - value to validate
      Returns:
      true if value is validate. Otherwise false.