public static class ImmutableParameter.Builder extends Object
ImmutableParameter.
By default, the default value will be an empty list.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableParameter |
build()
Create an instance.
|
List<String> |
getDefaultValue()
Get the default value as a list of arguments.
|
String |
getName()
Get the name of the parameter.
|
OptionType |
getOptionType()
Get the type of parameter.
|
ImmutableParameter.Builder |
setDefaultValue(List<String> defaultValue)
Set the default value as a list of arguments.
|
ImmutableParameter.Builder |
setName(String name)
Set the name of the parameter.
|
ImmutableParameter.Builder |
setOptionType(OptionType optionType)
Set the type of parameter.
|
public String getName()
public ImmutableParameter.Builder setName(String name)
name - The name of the parameterpublic OptionType getOptionType()
public ImmutableParameter.Builder setOptionType(OptionType optionType)
optionType - The type of parameterpublic List<String> getDefaultValue()
An empty list implies that there is no default value.
public ImmutableParameter.Builder setDefaultValue(List<String> defaultValue)
An empty list implies that there is no default value.
defaultValue - The default value (one value) as a listpublic ImmutableParameter build()
Neither name nor optionType can be null.
Copyright © 2015. All Rights Reserved.