public class SimpleTraversal<DataType> extends Object
| Constructor and Description |
|---|
SimpleTraversal(String humanReadablePath) |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
get(Object tree) |
static <T> SimpleTraversal<T> |
newTraversal(String humanReadablePath)
Google Maps.newHashMap() trick to fill in generic type
|
Optional<DataType> |
remove(Object tree) |
Optional<DataType> |
set(Object tree,
DataType data) |
public SimpleTraversal(String humanReadablePath)
public static <T> SimpleTraversal<T> newTraversal(String humanReadablePath)
public Optional<DataType> get(Object tree)
tree - tree of Map and List JSON structure to navigatepublic Optional<DataType> set(Object tree, DataType data)
tree - tree of Map and List JSON structure to navigatedata - JSON style data object you want to setCopyright © 2023. All rights reserved.