public class BooleanParameter extends AbstractParameter<Boolean>
category, key, LOGGER, mappingFunction, value| Constructor and Description |
|---|
BooleanParameter(String key,
String category,
boolean defaultValue)
Constructor that uses the default mapping function.
|
BooleanParameter(String key,
String category,
boolean defaultValue,
Function<String,Boolean> customMappingFunction)
Constructor that uses a custom mapping function.
|
| Modifier and Type | Method and Description |
|---|---|
BooleanParameter |
copy()
Creates an unregistered copy of this parameter.
|
getCategory, getCompositeKey, getKey, getMappingFunction, getStringValue, getValue, isRegistered, loadFromEnvironmentVariables, setMappingFunction, setRegistered, setValue, toStringpublic BooleanParameter(String key, String category, boolean defaultValue, Function<String,Boolean> customMappingFunction) throws IllegalArgumentException
key - the unique key of the parameter, which is used to change it via RESTcategory - the category of the parameterdefaultValue - the default valuecustomMappingFunction - a function that maps strings to the parameter valuesIllegalArgumentException - thrown if the key contains invalid characterspublic BooleanParameter(String key, String category, boolean defaultValue)
key - the unique key of the parameter, which is used to change it via RESTcategory - the category of the parameterdefaultValue - the default valuepublic BooleanParameter copy()
AbstractParametercopy in class AbstractParameter<Boolean>Copyright © 2017–2019. All rights reserved.