public class IntListParameter extends ListParameter<IntListParameter,int[]>
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
|
Modifier and Type | Method and Description |
---|---|
String |
getSyntax()
Returns a string representation of the parameter's type.
|
long[] |
getValueAsBitSet()
Get the values as a bitmask.
|
String |
getValueAsString()
Get the value as string.
|
protected int[] |
parseValue(Object obj)
Parse a given value into the destination type.
|
int |
size()
Size of the list.
|
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, 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()
Parameter
null
getValueAsString
in interface Parameter<int[]>
getValueAsString
in class AbstractParameter<IntListParameter,int[]>
protected int[] parseValue(Object obj) throws ParameterException
AbstractParameter
parseValue
in class AbstractParameter<IntListParameter,int[]>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.public int size()
ListParameter
size
in class ListParameter<IntListParameter,int[]>
public String getSyntax()
getSyntax
in interface Parameter<int[]>
getSyntax
in class AbstractParameter<IntListParameter,int[]>
public long[] getValueAsBitSet()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.