public class IntListParameter extends ListParameter<Integer>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT
constraints, 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
|
IntListParameter(OptionID optionID,
List<ParameterConstraint<List<Integer>>> constraints,
boolean optional)
Constructs an integer list parameter
|
IntListParameter(OptionID optionID,
List<ParameterConstraint<List<Integer>>> constraints,
List<Integer> defaultValue)
Constructs an integer list parameter
|
IntListParameter(OptionID optionID,
ParameterConstraint<List<Integer>> constraint)
Constructs an integer list parameter
|
IntListParameter(OptionID optionID,
ParameterConstraint<List<Integer>> constraint,
boolean optional)
Constructs an integer list parameter
|
IntListParameter(OptionID optionID,
ParameterConstraint<List<Integer>> constraint,
List<Integer> defaultValue)
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, getListSize
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate
public IntListParameter(OptionID optionID, List<ParameterConstraint<List<Integer>>> constraints, List<Integer> defaultValue)
optionID
- the unique id of this parameterconstraints
- the constraints of this parameter, may be nulldefaultValue
- the default valuepublic IntListParameter(OptionID optionID, List<ParameterConstraint<List<Integer>>> constraints, boolean optional)
optionID
- the unique id of this parameterconstraints
- the constraints of this parameter, may be nulloptional
- specifies if this parameter is an optional parameterpublic IntListParameter(OptionID optionID, ParameterConstraint<List<Integer>> constraint, List<Integer> defaultValue)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameter, may be nulldefaultValue
- the default valuepublic IntListParameter(OptionID optionID, ParameterConstraint<List<Integer>> constraint, boolean optional)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameter, may be nulloptional
- specifies if this parameter is an optional parameterpublic IntListParameter(OptionID optionID, ParameterConstraint<List<Integer>> constraint)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameter, may be nullpublic 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()
null
protected List<Integer> parseValue(Object obj) throws ParameterException
parseValue
in class Parameter<List<Integer>,List<Integer>>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.