
public class LongParameter extends NumberParameter<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. 
 | 
LongParameter(OptionID optionID,
             ParameterConstraint<Number> constraint,
             long defaultValue)
 | 
| 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, addConstraints, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate@Deprecated public LongParameter(OptionID optionID, ParameterConstraint<Number> constraint, long defaultValue)
AbstractParameter.addConstraint(de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.ParameterConstraint<? super T>) instead!optionID - the unique OptionID for this parameterconstraint - the parameter constraint for this long parameterdefaultValue - the default valuepublic 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()
ParameternullgetValueAsString in interface Parameter<Long>getValueAsString in class AbstractParameter<Long>protected Long parseValue(Object obj) throws ParameterException
AbstractParameterparseValue in class AbstractParameter<Long>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.