| Modifier and Type | Class and Description |
|---|---|
class |
StrictYamlMapping
Decorator for a
YamlMapping which throws
YamlNodenotFoundException, instead of returning null,
if a given key doesn't exist in the mapping, or if it points
to a different type of node than the demanded one.It is based on the fail-fast and null-is-bad idea see here: http://www.yegor256.com/2014/05/13/why-null-is-bad.html |
| Modifier and Type | Method and Description |
|---|---|
YamlMapping |
YamlMappingBuilder.build()
Build the YamlMapping.
|
YamlMapping |
YamlInput.readYamlMapping()
Read the given input as a Yaml mapping.
|
YamlMapping |
YamlObjectDump.represent() |
YamlMapping |
YamlMapDump.represent() |
YamlMapping |
StrictYamlSequence.yamlMapping(int index)
Get the Yaml mapping from the given index.
|
YamlMapping |
YamlSequence.yamlMapping(int index)
Get the Yaml mapping from the given index.
|
YamlMapping |
YamlMapping.yamlMapping(String key)
Get the Yaml mapping associated with the given key.
|
YamlMapping |
StrictYamlMapping.yamlMapping(String key) |
YamlMapping |
YamlMapping.yamlMapping(YamlNode key)
Get the Yaml mapping associated with the given key.
|
YamlMapping |
StrictYamlMapping.yamlMapping(YamlNode key) |
| Constructor and Description |
|---|
StrictYamlMapping(YamlMapping decorated)
Ctor.
|
Copyright © 2020. All rights reserved.