
public class IntListParameter extends ListParameter<IntListParameter,Integer>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLITconstraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description |
|---|
IntListParameter(OptionID optionID)
Constructs an integer list parameter
|
IntListParameter(OptionID optionID,
boolean optional)
Constructs an integer list parameter
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSyntax()
Returns a string representation of the parameter's type.
|
String |
getValueAsString()
Get the value as string.
|
protected List<Integer> |
parseValue(Object obj)
Parse a given value into the destination type.
|
asString, getListSizeaddConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validatepublic IntListParameter(OptionID optionID, boolean optional)
optionID - the unique id of this parameteroptional - specifies if this parameter is an optional parameterpublic IntListParameter(OptionID optionID)
optionID - the unique id of this parameterpublic String getValueAsString()
ParameternullgetValueAsString in interface Parameter<List<Integer>>getValueAsString in class AbstractParameter<IntListParameter,List<Integer>>protected List<Integer> parseValue(Object obj) throws ParameterException
AbstractParameterparseValue in class AbstractParameter<IntListParameter,List<Integer>>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.public String getSyntax()
getSyntax in interface Parameter<List<Integer>>getSyntax in class AbstractParameter<IntListParameter,List<Integer>>