Class DistanceValidator

java.lang.Object
models.validators.DistanceValidator
All Implemented Interfaces:
Validator<Integer>

public class DistanceValidator extends Object implements Validator<Integer>
Implementation of validator for distance field. (Route)
Since:
1.0
  • Constructor Details

    • DistanceValidator

      public DistanceValidator()
  • Method Details

    • validate

      public boolean validate(Integer value)
      Checks if value greater than 1
      Specified by:
      validate in interface Validator<Integer>
      Parameters:
      value - distance to validate
      Returns:
      true/false -- matches the restrictions
      See Also: