Class JsonPointerIterator
java.lang.Object
io.vertx.rxjava3.core.json.pointer.JsonPointerIterator
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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 RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<JsonPointerIterator> static final JsonPointerIteratorInstance of a JsonPointerIterator to query Vert.x Json structures -
Constructor Summary
ConstructorsConstructorDescriptionJsonPointerIterator(JsonPointerIterator delegate) 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 indexgetObjectParameter(Object currentValue, String key, boolean createOnMissing) Returns the object parameter with specified key.inthashCode()booleanbooleanbooleanstatic JsonPointerIteratorbooleanobjectContainsKey(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
-
__TYPE_ARG
-
JSON_ITERATOR
Instance of a JsonPointerIterator to query Vert.x Json structures
-
-
Constructor Details
-
JsonPointerIterator
-
JsonPointerIterator
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
isObject
- Parameters:
currentValue-- Returns:
trueif the current value is a queryable object
-
isArray
- Parameters:
currentValue-- Returns:
trueif the current value is a queryable array
-
isNull
- Parameters:
currentValue-- Returns:
trueif the current value is null/empty
-
objectContainsKey
-
getObjectParameter
Returns the object parameter with specified key.- Parameters:
currentValue-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
-
writeObjectParameter
-
writeArrayElement
-
appendArrayElement
-
newInstance
-