Class OptionToggle


public class OptionToggle extends OptionWithoutArg
Class representing a toggle. Boolean option value, initially false, toggles every time when option is processed.
  • Constructor Details

    • OptionToggle

      public OptionToggle(String names)
  • Method Details

    • getValue

      public Boolean getValue()
      Returns the current option value.
      Specified by:
      getValue in class Option
      Returns:
      a value.
    • handle

      public void handle()
      Toggles option value.
      Specified by:
      handle in class OptionWithoutArg