public class JsonValueTraverseFunction extends Object implements Function<JsonValue,JsonValue,JsonValueException>
| Constructor and Description |
|---|
JsonValueTraverseFunction(Function<JsonValue,?,JsonValueException> transform)
Construct the traversal function with a transformation function to apply to each array element
nested object attribute value element, or primitive element.
|
| Modifier and Type | Method and Description |
|---|---|
JsonValue |
apply(JsonValue value)
Applies this function to the input parameter
value and returns
the result. |
protected Object |
traverseList(JsonValue value)
Transform a JsonValue List into another object.
|
protected Object |
traverseMap(JsonValue value)
Transform a JsonValue Map into another object.
|
public JsonValueTraverseFunction(Function<JsonValue,?,JsonValueException> transform)
transform - a transformation functionpublic final JsonValue apply(JsonValue value)
Functionvalue and returns
the result.apply in interface Function<JsonValue,JsonValue,JsonValueException>value - The input parameter.value.protected Object traverseList(JsonValue value)
ArrayList filled with the elements on which we applied the transformations.value - the value to transformprotected Object traverseMap(JsonValue value)
LinkedHashMap filled with the elements on which we applied the transformations.value - the value to transformCopyright © 2025 Open Identity Platform Community. All rights reserved.