
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,
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.
|
| 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, validatepublic 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 parameterpublic String getValueAsString()
nullgetValueAsString 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.