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 NOTE: This class has been automatically generated from the
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 using Vert.x codegen.-
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) JsonPointerIterator(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanappendArrayElement(Object currentValue, Object value) booleangetArrayElement(Object currentValue, int i) io.vertx.core.json.pointer.JsonPointerIteratorgetObjectParameter(Object currentValue, String key, boolean createOnMissing) inthashCode()booleanbooleanbooleanstatic JsonPointerIteratornewInstance(io.vertx.core.json.pointer.JsonPointerIterator arg) booleanobjectContainsKey(Object currentValue, String key) toString()booleanwriteArrayElement(Object currentValue, int i, Object value) booleanwriteObjectParameter(Object currentValue, String key, Object value)
-
Field Details
-
__TYPE_ARG
-
JSON_ITERATOR
Instance of a JsonPointerIterator to query Vert.x Json structures
-
-
Constructor Details
-
JsonPointerIterator
public JsonPointerIterator(io.vertx.core.json.pointer.JsonPointerIterator delegate) -
JsonPointerIterator
-
-
Method Details
-
getDelegate
public io.vertx.core.json.pointer.JsonPointerIterator getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
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
- Parameters:
currentValue-key- object key- Returns:
trueif current value is a queryable object that contains the specified key
-
getObjectParameter
- 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
- Parameters:
currentValue-i- array index- Returns:
- the request array element, or null if the method was not able to find it
-
writeObjectParameter
- Parameters:
currentValue-key-value-- Returns:
- true if the operation is successful
-
writeArrayElement
- Parameters:
currentValue-i-value-- Returns:
- true if the operation is successful
-
appendArrayElement
- Parameters:
currentValue-value-- Returns:
- true if the operation is successful
-
newInstance
-