Interface OneArgParam<T>

All Superinterfaces:
Param
All Known Implementing Classes:
AppendingParam, BasicOneArgParam, BoundedParam, CharParam, ClampedParam, DateParam, DoubleParam, ExistingDirectoryParam, ExistingFileParam, IntListParam, IntParam, SetRestrictedParam, StringParam

public non-sealed interface OneArgParam<T> extends Param
An interface for parameters that take an argument from the command line.
  • Method Summary

    Modifier and Type
    Method
    Description
    gets the current value of the parameter
    void
    process(String param, String argument)
    Process an parameter with its argument.

    Methods inherited from interface org.rwtodd.args.Param

    addHelp, addToMap
  • Method Details

    • process

      void process(String param, String argument) throws ArgParserException
      Process an parameter with its argument.
      Parameters:
      param - the name of the parameter, as it was found in the command-line.
      argument - the given argument to the parameter.
      Throws:
      ArgParserException - if there is a problem parsing the argument.
    • getValue

      T getValue()
      gets the current value of the parameter