java.lang.Object
coneforest.clianthus.option.Option
coneforest.clianthus.option.OptionWithArg
coneforest.clianthus.option.OptionCollector<T>
- Type Parameters:
T
- a type of containing object
- Direct Known Subclasses:
OptionCollectorDouble
,OptionCollectorFloat
,OptionCollectorInteger
,OptionCollectorLong
,OptionCollectorString
An abstract option holding a list of objects.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OptionCollector
Creates new option with given names.- Parameters:
names
- space-delimited names.
-
-
Method Details
-
getValue
Returns a list containing collected objects. -
handle
Add parsed argument to list. Argument is parsed byparseArg(String)
.- Specified by:
handle
in classOptionWithArg
- Parameters:
arg
- an argument.- Throws:
ProcessingException
- when parse error occurs.
-