public class LongParameter extends SimpleParameter<Long>
defaultValue, hasDefaultValue, name, value
Constructor and Description |
---|
LongParameter(ParameterizedBase owner,
String name)
Set the parameter name and add this parameter to the list of parameters
stored by owner.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
LongParameter |
setDefaultValue(long defaultValue)
Set the default value.
|
LongParameter |
setMaximumValue(long maximumValue)
Set the maximum value.
|
LongParameter |
setMinimumValue(long minimumValue)
Set the minimum value.
|
String |
toString() |
getUsage, getValue, isHidden, setDefaultValue
public LongParameter(ParameterizedBase owner, String name)
owner
- the Parameterized
using this Parameter
name
- the parameter namepublic LongParameter setDefaultValue(long defaultValue)
The default may set to any value and is not restricted by setting the minimum or maximum values.
defaultValue
- the default value.public LongParameter setMinimumValue(long minimumValue)
If a maximum value has been set then the minimum value must not be greater than the maximum value.
minimumValue
- the minimum valuepublic LongParameter setMaximumValue(long maximumValue)
If a minimum value has been set then the maximum value must not be less than the minimum value.
maximumValue
- the maximum valuepublic void configure(ParameterTool parameterTool)
Parameter
parameterTool
- parameter parserCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.