T
- the type of a possible value (i.e., the type of the option)public abstract class NumberParameter<T extends Number> extends Parameter<Number,T>
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
NumberParameter(OptionID optionID)
Constructs a number parameter with the given optionID.
|
NumberParameter(OptionID optionID,
boolean optional)
Constructs a number parameter with the given optionID and optional flag.
|
NumberParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints)
Constructs a number parameter with the given optionID, and constraint.
|
NumberParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
boolean optional)
Constructs a number parameter with the given optionID, constraint, and
optional flag.
|
NumberParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
T defaultValue)
Constructs a number parameter with the given optionID, constraint, and
optional flag.
|
NumberParameter(OptionID optionID,
ParameterConstraint<Number> constraint)
Constructs a number parameter with the given optionID, and constraint.
|
NumberParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
boolean optional)
Constructs a number parameter with the given optionID, constraint, and
optional flag.
|
NumberParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
T defaultValue)
Constructs a number parameter with the given optionID, constraint, and
optional flag.
|
NumberParameter(OptionID optionID,
T defaultValue)
Constructs a number parameter with the given optionID and default Value.
|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getSyntax, getValue, getValueAsString, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, parseValue, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate
public NumberParameter(OptionID optionID, List<ParameterConstraint<Number>> constraints, T defaultValue)
optionID
- the unique id of this parameterconstraints
- the constraints of this parameterdefaultValue
- the default value for this parameterpublic NumberParameter(OptionID optionID, List<ParameterConstraint<Number>> constraints, boolean optional)
optionID
- the unique id of this parameterconstraints
- the constraint of this parameteroptional
- specifies if this parameter is an optional parameterpublic NumberParameter(OptionID optionID, List<ParameterConstraint<Number>> constraints)
optionID
- the unique id of this parameterconstraints
- the constraints of this parameter, may be empty if there
are no constraintspublic NumberParameter(OptionID optionID, ParameterConstraint<Number> constraint, T defaultValue)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameterdefaultValue
- the default value for this parameterpublic NumberParameter(OptionID optionID, ParameterConstraint<Number> constraint, boolean optional)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameteroptional
- specifies if this parameter is an optional parameterpublic NumberParameter(OptionID optionID, ParameterConstraint<Number> constraint)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameterpublic NumberParameter(OptionID optionID, T defaultValue)
optionID
- the unique id of this parameterdefaultValue
- the default value for this parameterpublic NumberParameter(OptionID optionID, boolean optional)
optionID
- the unique id of this parameteroptional
- specifies if this parameter is an optional parameterpublic NumberParameter(OptionID optionID)
optionID
- the unique id of this parameter