Interface Validator

All Known Implementing Classes:
BigDecimalValidator, BigIntegerValidator, DoubleValidator, FloatValidator, IntegerValidator, LongValidator, ShortValidator
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
Is the interface which provides the method declaration to validate an option argument.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(String storeKey, String name, String arg)
    Validates an option argument string whether it is valid format of the specified type, etc.
  • Method Details

    • validate

      void validate(String storeKey, String name, String arg) throws OptionArgIsInvalid
      Validates an option argument string whether it is valid format of the specified type, etc.
      Parameters:
      storeKey - The store key used to store in Cmd instance.
      name - The option name.
      arg - The option argument string in command line arguments.
      Throws:
      OptionArgIsInvalid - If the option argument is invalid.