public interface YamlSequence extends YamlNode, Iterable<YamlNode>
| Modifier and Type | Method and Description |
|---|---|
default String |
indent(int indentation)
Indent this YamlSequence.
|
Iterator<YamlNode> |
iterator()
Returns this YamlSequence's children Iterator.
It is equivalent to YamlSequence.values().iterator(). |
int |
size()
The number of Yaml elements (scalars, mappings and sequences) found in
this sequence.
|
String |
string(int index)
Get the String from the given index.
|
YamlMapping |
yamlMapping(int index)
Get the Yaml mapping from the given index.
|
YamlSequence |
yamlSequence(int index)
Get the Yaml sequence from the given index.
|
compareToforEach, spliteratorint size()
YamlMapping yamlMapping(int index)
index - Integer index.YamlSequence yamlSequence(int index)
index - Integer index.String string(int index)
index - Integer index.Iterator<YamlNode> iterator()
default String indent(int indentation)
indent in interface YamlNodeindentation - Indentation to start with. Usually, it's 0, since we
don't want to have spaces at the beginning. But in the case of nested
YamlNodes, this value may be greater than 0.Copyright © 2020. All rights reserved.