public class LongParameter extends NumberParameter<LongParameter,Long>
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
LongParameter(OptionID optionID)
Constructs a long parameter with the given optionID.
|
LongParameter(OptionID optionID,
long defaultValue)
Constructs a long parameter with the given optionID and default value.
|
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 Long |
parseValue(Object obj)
Parse a given value into the destination type.
|
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 LongParameter(OptionID optionID, long defaultValue)
optionID
- the unique OptionID for this parameterdefaultValue
- the default valuepublic LongParameter(OptionID optionID)
optionID
- the unique OptionID for this parameterpublic String getValueAsString()
Parameter
null
getValueAsString
in interface Parameter<Long>
getValueAsString
in class AbstractParameter<LongParameter,Long>
protected Long parseValue(Object obj) throws ParameterException
AbstractParameter
parseValue
in class AbstractParameter<LongParameter,Long>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.public String getSyntax()
getSyntax
in interface Parameter<Long>
getSyntax
in class AbstractParameter<LongParameter,Long>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.