Class AccumulatingParam

java.lang.Object
org.rwtodd.args.BasicNoArgParam<Integer>
org.rwtodd.args.AccumulatingParam
All Implemented Interfaces:
NoArgParam, Param

public class AccumulatingParam extends BasicNoArgParam<Integer>
A Param that counts the number of times it is seen. It starts counting from the default value, which is 0 if not provided.
  • Constructor Details

  • Method Details

    • process

      public void process(String param) throws ArgParserException
      Description copied from interface: NoArgParam
      Process a parameter found on the command-line.
      Parameters:
      param - the name of the parameter.
      Throws:
      ArgParserException - when there is a problem processing the parameter.