THIS
- Type self-referenceT
- List typepublic abstract class ListParameter<THIS extends ListParameter<THIS,T>,T> extends AbstractParameter<THIS,T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LIST_SEP
List separator character - ":"
|
static java.util.regex.Pattern |
SPLIT
A pattern defining a ",".
|
static java.lang.String |
VECTOR_SEP
Vector separator character - ":"
|
static java.util.regex.Pattern |
VECTOR_SPLIT
A pattern defining a ":" or ";".
|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
ListParameter(OptionID optionID)
Constructs a list parameter with the given optionID.
|
ListParameter(OptionID optionID,
boolean optional)
Constructs a list parameter with the given optionID and optional flag.
|
ListParameter(OptionID optionID,
T defaultValue)
Constructs a list parameter with the given optionID.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
size()
Size of the list.
|
addConstraint, describeValues, getConstraints, getDefaultValue, getDefaultValueAsString, getOptionID, getShortDescription, getSyntax, getValue, getValueAsString, hasDefaultValue, isDefined, isOptional, isValid, parseValue, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, validate
public static final java.util.regex.Pattern SPLIT
public static final java.lang.String LIST_SEP
public static final java.util.regex.Pattern VECTOR_SPLIT
public static final java.lang.String VECTOR_SEP
public ListParameter(OptionID optionID, T defaultValue)
optionID
- the unique id of this parameterdefaultValue
- the default value of this parameter (may be null)public ListParameter(OptionID optionID, boolean optional)
optionID
- the unique id of this parameteroptional
- Optional flagpublic ListParameter(OptionID optionID)
optionID
- the unique id of this parameterCopyright © 2019 ELKI Development Team. License information.