|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<List<T>,List<T>> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter<Integer> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.IntListParameter
public class IntListParameter
Parameter class for a parameter specifying a list of integer values.
Field Summary |
---|
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter |
---|
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter |
---|
asString, getListSize |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 parameterMethod Detail |
---|
public String getValueAsString()
null
getValueAsString
in class Parameter<List<Integer>,List<Integer>>
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.public String getSyntax()
getSyntax
in class Parameter<List<Integer>,List<Integer>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |