public class BooleanParameter extends SimpleParameter<Boolean>
defaultValue, hasDefaultValue, name, value
Constructor and Description |
---|
BooleanParameter(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.
|
String |
getUsage()
An informal usage string.
|
String |
toString() |
getValue, isHidden, setDefaultValue
public BooleanParameter(ParameterizedBase owner, String name)
owner
- the Parameterized
using this Parameter
name
- the parameter namepublic String getUsage()
Parameter
Optional parameters are enclosed by "[" and "]".
Generic values are represented by all-caps with specific values enclosed by "<" and ">".
public void configure(ParameterTool parameterTool)
Parameter
parameterTool
- parameter parserCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.