Top Description Methods
org.snakeyaml.engine.v2.env

public Interface EnvConfig

Imports
java.util.Optional

Configurator for ENV format
See Also
Variable substitution

Method Summary

Modifier and TypeMethod and Description
public default Optional<String>

Returns:

the value to apply in the template or empty to follow the standard logic
getValueFor
(String
- variable name in the template
name
,
String
- separator in the template, can be :-, -, :?, ? or null if not present
separator
,
String
- default value or the error in the template or empty if not present
value
,
String
- the value from environment for the provided variable or null if unset
environment
)

Implement deviation from the standard logic.

Method Detail

getValueForback to summary
public default Optional<String> getValueFor(String name, String separator, String value, String environment)

Implement deviation from the standard logic. TODO implement wiki page

Parameters
name:String

- variable name in the template

separator:String

- separator in the template, can be :-, -, :?, ? or null if not present

value:String

- default value or the error in the template or empty if not present

environment:String

- the value from environment for the provided variable or null if unset

Returns:Optional<String>

the value to apply in the template or empty to follow the standard logic