Class OptionCounter


public class OptionCounter extends OptionWithoutArg
Class representing a counter. Integer option value, initially zero, increments every time when option is processed.
  • Constructor Details

    • OptionCounter

      public OptionCounter(String names)
  • Method Details

    • getValue

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

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