Class JsonPointerIterator
java.lang.Object
io.vertx.mutiny.core.json.pointer.JsonPointerIterator
- All Implemented Interfaces:
MutinyDelegate
The JsonPointerIterator is used by the read/write algorithms of the
Every method takes the currentValue as parameter, representing the actual value held by the query algorithm.
Implementations of this interface should be stateless, so they can be reused
You can implement this interface to query the structure you want using json pointers
JsonPointer to read/write the querying data structure Every method takes the currentValue as parameter, representing the actual value held by the query algorithm.
Implementations of this interface should be stateless, so they can be reused
You can implement this interface to query the structure you want using json pointers
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Francesco Guardiani @slinkydeveloper
- See Also:
-
JsonPointerIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<JsonPointerIterator>static final JsonPointerIteratorInstance of a JsonPointerIterator to query Vert.x Json structures -
Constructor Summary
ConstructorsConstructorDescriptionJsonPointerIterator(io.vertx.core.json.pointer.JsonPointerIterator delegate) Create a new instance ofJsonPointerIteratordelegating to the given (non-null) instance ofJsonPointerIterator.JsonPointerIterator(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanappendArrayElement(Object currentValue, Object value) Append array elementbooleangetArrayElement(Object currentValue, int i) Move the iterator the array element at specified indexio.vertx.core.json.pointer.JsonPointerIteratorGet the delegate instance.getObjectParameter(Object currentValue, String key, boolean createOnMissing) Returns the object parameter with specified key.inthashCode()booleanbooleanbooleanstatic JsonPointerIteratornewInstance(io.vertx.core.json.pointer.JsonPointerIterator delegate) Creates a new instance of theJsonPointerIterator.booleanobjectContainsKey(Object currentValue, String key) toString()booleanwriteArrayElement(Object currentValue, int i, Object value) Write array element at specified indexbooleanwriteObjectParameter(Object currentValue, String key, Object value) Write object parameter at specified key
-
Field Details
-
JSON_ITERATOR
Instance of a JsonPointerIterator to query Vert.x Json structures -
__TYPE_ARG
-
-
Constructor Details
-
JsonPointerIterator
public JsonPointerIterator(io.vertx.core.json.pointer.JsonPointerIterator delegate) Create a new instance ofJsonPointerIteratordelegating to the given (non-null) instance ofJsonPointerIterator. -
JsonPointerIterator
-
-
Method Details
-
getDelegate
public io.vertx.core.json.pointer.JsonPointerIterator getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
isObject
- Parameters:
currentValue- . Can benull.- Returns:
trueif the current value is a queryable object
-
isArray
- Parameters:
currentValue- . Can benull.- Returns:
trueif the current value is a queryable array
-
isNull
- Parameters:
currentValue- . Can benull.- Returns:
trueif the current value is null/empty
-
objectContainsKey
- Parameters:
currentValue- . Can benull.key- object key- Returns:
trueif current value is a queryable object that contains the specified key
-
getObjectParameter
Returns the object parameter with specified key.- Parameters:
currentValue- . Can benull.key- object keycreateOnMissing- If the current value is an object that doesn't contain the key, put an empty object at provided key- Returns:
- the requested object parameter, or null if the method was not able to find it
-
getArrayElement
Move the iterator the array element at specified index- Parameters:
currentValue- . Can benull.i- array index- Returns:
- the request array element, or null if the method was not able to find it
-
writeObjectParameter
Write object parameter at specified key- Parameters:
currentValue- . Can benull.key-value- . Can benull.- Returns:
- true if the operation is successful
-
writeArrayElement
Write array element at specified index- Parameters:
currentValue- . Can benull.i-value- . Can benull.- Returns:
- true if the operation is successful
-
appendArrayElement
Append array element- Parameters:
currentValue- . Can benull.value- . Can benull.- Returns:
- true if the operation is successful
-
newInstance
public static JsonPointerIterator newInstance(io.vertx.core.json.pointer.JsonPointerIterator delegate) Creates a new instance of theJsonPointerIterator. -
hashCode
public int hashCode() -
equals
-
toString
-