|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<Number,T> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.NumberParameter<Long> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.LongParameter
public class LongParameter
Parameter class for a parameter specifying a long value.
Field Summary |
---|
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription |
Constructor Summary | |
---|---|
LongParameter(OptionID optionID)
Constructs a long parameter with the given optionID. |
|
LongParameter(OptionID optionID,
boolean optional)
Constructs a long parameter with the given optionID. |
|
LongParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints)
Constructs a long parameter with the given optionID, and parameter constraint. |
|
LongParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
boolean optional)
Constructs a long parameter with the given optionID, and parameter constraint. |
|
LongParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
long defaultValue)
Constructs a long parameter with the given optionID, parameter constraint and default value. |
|
LongParameter(OptionID optionID,
long defaultValue)
Constructs a long parameter with the given optionID and default value. |
|
LongParameter(OptionID optionID,
ParameterConstraint<Number> constraint)
Constructs a long parameter with the given optionID, and parameter constraint. |
|
LongParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
boolean optional)
Constructs a long parameter with the given optionID, and parameter constraint. |
|
LongParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
long defaultValue)
Constructs a long parameter with the given optionID, parameter constraint and default value. |
Method Summary | |
---|---|
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. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongParameter(OptionID optionID, List<ParameterConstraint<Number>> constraints, long defaultValue)
optionID
- the unique OptionID for this parameterconstraints
- the parameter constraints for this long parameterdefaultValue
- the default valuepublic LongParameter(OptionID optionID, List<ParameterConstraint<Number>> constraints, boolean optional)
optionID
- the unique OptionID for this parameterconstraints
- the parameter constraints for this long parameteroptional
- optional flagpublic LongParameter(OptionID optionID, List<ParameterConstraint<Number>> constraints)
optionID
- the unique OptionID for this parameterconstraints
- the parameter constraints for this long parameterpublic LongParameter(OptionID optionID, ParameterConstraint<Number> constraint, long defaultValue)
optionID
- the unique OptionID for this parameterconstraint
- the parameter constraint for this long parameterdefaultValue
- the default valuepublic LongParameter(OptionID optionID, ParameterConstraint<Number> constraint, boolean optional)
optionID
- the unique OptionID for this parameterconstraint
- the parameter constraint for this long parameteroptional
- optional flagpublic LongParameter(OptionID optionID, ParameterConstraint<Number> constraint)
optionID
- the unique OptionID for this parameterconstraint
- the parameter constraint for this long parameterpublic LongParameter(OptionID optionID, long defaultValue)
optionID
- the unique OptionID for this parameterdefaultValue
- the default valuepublic LongParameter(OptionID optionID, boolean optional)
optionID
- the unique OptionID for this parameteroptional
- optional flagpublic LongParameter(OptionID optionID)
optionID
- the unique OptionID for this parameterMethod Detail |
---|
public String getValueAsString()
null
getValueAsString
in class Parameter<Number,Long>
protected Long parseValue(Object obj) throws ParameterException
parseValue
in class Parameter<Number,Long>
obj
- Object to parse (may be a string representation!)
ParameterException
- when the object cannot be parsed.public String getSyntax()
getSyntax
in class Parameter<Number,Long>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |