Class OptionCounter


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

      • OptionCounter

        public OptionCounter​(String names)
    • Method Detail

      • 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