public class YamlSeq extends YamlObject<List<Object>> implements Iterable<YamlObject<Object>>
Wrapper requires List
as sequence order is required.
raw
Modifier and Type | Method and Description |
---|---|
Boolean |
bool(int i)
Boolean access
|
Double |
doub(int i)
Double access
|
static YamlSeq |
from(Object... values)
Quick inline sequence creation.
|
Object |
get(int i)
Value access
|
Integer |
integer(int i)
Integer access
|
Iterator<YamlObject<Object>> |
iterator()
Iterator access, requires all contents be wrapped as
YamlObject . |
YamlMap |
map(int i)
Map access
|
YamlObject<?> |
obj(int i)
Yaml wrapper access
Wrappers are provided for Map and List
|
YamlSeq |
seq(int i)
YamlSeq access
|
String |
str(int i)
String access
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public YamlSeq(Object obj)
obj
- Wrapped List
IllegalArgumentException
- List
is requiredpublic static YamlSeq from(Object... values)
values
- public String str(int i)
i
- indexpublic Integer integer(int i)
i
- indexpublic Double doub(int i)
i
- indexpublic Boolean bool(int i)
i
- indexpublic Object get(int i)
i
- indexpublic YamlObject<?> obj(int i)
Wrappers are provided for Map and List
i
- indexpublic YamlMap map(int i)
i
- indexYamlMap
wrapperpublic YamlSeq seq(int i)
i
- indexYamlSeq
wrapperpublic Iterator<YamlObject<Object>> iterator()
YamlObject
.
To traverse a list of atomic values use YamlObject.raw()
iterator().
iterator
in interface Iterable<YamlObject<Object>>
YamlObject
iterator accessCopyright © 1996–2019 Geotools. All rights reserved.