| Modifier and Type | Method and Description |
|---|---|
JsonArray |
add(JsonValue element)
Add a new
JsonValue to the array. |
void |
addAll(JsonArray element)
Add all elements from the provided
JsonArray to this array. |
List<JsonValue> |
asList()
|
JsonValue |
get(int index)
Get the
JsonValue at the provided index. |
JsonValue |
getFirst()
Get the first
JsonValue in the array. |
Iterator<JsonValue> |
iterator()
|
JsonValue |
remove(int index)
Remove the
JsonValue at the provided index. |
JsonValue |
replace(int index,
JsonValue newElement)
|
int |
size() |
asBoolean, asByteBuffer, asJsonArray, asJsonObject, asNumber, asString, isBoolean, isJsonArray, isJsonObject, isNull, isNumber, isString, toObject, toStringJsonArray add(JsonValue element)
JsonValue to the array. Supports chaining of calls.element - the value to addJsonArray to allow call chainingvoid addAll(JsonArray element)
JsonArray to this array.element - the array to add all elements fromJsonValue get(int index)
JsonValue at the provided index.index - the index to get the value forJsonValue at the provided index or null if no value is foundJsonValue getFirst()
JsonValue in the array.JsonValue in the array or null if the array is emptyIterator<JsonValue> iterator()
JsonValue in the array or null if the array is emptyJsonValue remove(int index)
JsonValue at the provided index.index - the index to remove the value forJsonValue or null if no value is foundJsonValue replace(int index, JsonValue newElement)
index - the index to replace the value fornewElement - the new value to replace the old one withJsonArray to allow call chainingint size()
JsonArrayCopyright © 2025 lettuce.io. All rights reserved.