de.lmu.ifi.dbs.elki.utilities.optionhandling
Class ListParameter<T>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<List<T>,List<T>>
de.lmu.ifi.dbs.elki.utilities.optionhandling.ListParameter<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Loggable
- Direct Known Subclasses:
- ClassListParameter, DoubleListParameter, FileListParameter, IntListParameter, VectorListParameter
public abstract class ListParameter<T>
- extends Parameter<List<T>,List<T>>
Abstract parameter class defining a parameter for a list of objects.
- Author:
- Steffi Wanka
Method Summary |
int |
getListSize()
Returns the size of this list parameter. |
String |
toString()
Returns a string representation of this list parameter. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
addConstraint, addConstraintList, getDefaultValue, getDescription, getParameterType, getValue, hasDefaultValue, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
SPLIT
public static final Pattern SPLIT
- A pattern defining a ",".
VECTOR_SPLIT
public static final Pattern VECTOR_SPLIT
- A pattern defining a ":".
ListParameter
@Deprecated
public ListParameter(String name,
String description)
- Deprecated.
- Constructs a list parameter with the given name and description.
- Parameters:
name
- the parameter namedescription
- the parameter description
getListSize
public int getListSize()
- Returns the size of this list parameter.
- Returns:
- the size of this list parameter.
toString
public String toString()
- Returns a string representation of this list parameter. The elements of
this list parameters are given in "[ ]", comma separated.
- Overrides:
toString
in class Object
- See Also:
Object.toString()