public class ArrayTraversalStep<DataType> extends BaseTraversalStep<List<Object>,DataType>
TraversalStep.Operationchild, traversr| Constructor and Description |
|---|
ArrayTraversalStep(Traversr traversr,
TraversalStep child) |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
get(List<Object> list,
String key)
Return the data for the key from the provided tree object.
|
Class |
getStepType()
Return the Class of the Generic T, so that it can be used in an
"instanceof" style check.
|
List<Object> |
newContainer()
Create a new mutable Map or List, suitable for this PathElement to traverse.
|
Optional<DataType> |
overwriteSet(List<Object> list,
String key,
DataType data)
Insert the data into the tree, overwriting any data that is there.
|
Optional<DataType> |
remove(List<Object> list,
String key)
Remove and return the data for the key from the provided tree object.
|
getChild, traversepublic ArrayTraversalStep(Traversr traversr, TraversalStep child)
public Class getStepType()
TraversalSteppublic List<Object> newContainer()
TraversalSteppublic Optional<DataType> get(List<Object> list, String key)
TraversalSteppublic Optional<DataType> remove(List<Object> list, String key)
TraversalStepCopyright © 2023. All rights reserved.