public class StringParameter extends AbstractParameter<String>
category, key, LOGGER, mappingFunction, value| Constructor and Description |
|---|
StringParameter(String key,
String category,
String defaultValue)
Constructor that uses the default mapping function.
|
StringParameter(String key,
String category,
String defaultValue,
Function<String,String> customMappingFunction)
Constructor that uses a custom mapping function.
|
| Modifier and Type | Method and Description |
|---|---|
StringParameter |
copy()
Creates an unregistered copy of this parameter.
|
getCategory, getCompositeKey, getKey, getMappingFunction, getStringValue, getValue, isRegistered, loadFromEnvironmentVariables, setMappingFunction, setRegistered, setValue, toStringpublic StringParameter(String key, String category, String defaultValue, Function<String,String> 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 StringParameter(String key, String category, String defaultValue)
key - the unique key of the parameter, which is used to change it via RESTcategory - the category of the parameterdefaultValue - the default valuepublic StringParameter copy()
AbstractParametercopy in class AbstractParameter<String>Copyright © 2017–2019. All rights reserved.