public interface NavigableObject
Modifier and Type | Method and Description |
---|---|
default void |
_forEachEntry(BiConsumer fun)
Iterate through each entry in this object
|
default void |
_forEachEntry(List<String> path,
BiConsumer fun)
Iterate through the entries of a navigable Object at a certain path
|
default void |
_forEachEntry(String path,
BiConsumer fun)
Iterate through the entries of a navigable Object at a certain path
|
default Object |
_get(List<String> path,
Object def)
Get a child object value using json path
|
default Object |
_get(String path,
Object def)
Get a child object value using json path.
|
default String |
_getStr(List<String> path,
String def) |
default String |
_getStr(String path,
String def)
get the value as a String.
|
default int |
_size() |
default Object _get(String path, Object def)
path
- the full path to that object such as a/b/c[4]/d etcdef
- the defaultdefault String _getStr(String path, String def)
path
- the full pathdef
- default valuedefault void _forEachEntry(String path, BiConsumer fun)
path
- the json pathdefault void _forEachEntry(List<String> path, BiConsumer fun)
path
- the json pathdefault void _forEachEntry(BiConsumer fun)
default Object _get(List<String> path, Object def)
path
- the full path to that object such as ["a","b","c[4]","d"] etcdef
- the defaultdefault int _size()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.