Class RouteValidator

java.lang.Object
models.validators.RouteValidator
All Implemented Interfaces:
Validator<Route>

public class RouteValidator extends Object implements Validator<Route>
Implementation of validator for name field. (Route) * * @since 1.1 * @author Zerumi
  • Constructor Details

    • RouteValidator

      public RouteValidator()
  • Method Details

    • validate

      public boolean validate(Route route)
      Description copied from interface: Validator
      Provides validation method.
      Specified by:
      validate in interface Validator<Route>
      Parameters:
      route - value to validate
      Returns:
      true if value is validate. Otherwise false.