Package coneforest.cli
Class OptionCounter
- java.lang.Object
-
- coneforest.cli.Option
-
- coneforest.cli.OptionWithoutArg
-
- coneforest.cli.OptionCounter
-
public class OptionCounter extends OptionWithoutArg
Class representing a counter. Integer option value, initially zero, increments every time when option is processed.
-
-
Constructor Summary
Constructors Constructor Description OptionCounter(String names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getValue()
Returns current option value.void
handle()
Increments option value by one.
-
-
-
Constructor Detail
-
OptionCounter
public OptionCounter(String names)
-
-
Method Detail
-
getValue
public Integer getValue()
Returns current option value.
-
handle
public void handle()
Increments option value by one.- Specified by:
handle
in classOptionWithoutArg
-
-