Package | Description |
---|---|
com.hazelcast.internal.json | |
com.hazelcast.util |
This package contains classes to support the inner workings of Hazelcast
as well as some backports of newer Java features / data structures to
support older Java versions in a clean and nice way.
|
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(boolean value)
Appends the JSON representation of the specified
boolean value to the end of this
array. |
JsonArray |
JsonArray.add(double value)
Appends the JSON representation of the specified
double value to the end of this
array. |
JsonArray |
JsonArray.add(float value)
Appends the JSON representation of the specified
float value to the end of this
array. |
JsonArray |
JsonArray.add(int value)
Appends the JSON representation of the specified
int value to the end of this
array. |
JsonArray |
JsonArray.add(JsonValue value)
Appends the specified JSON value to the end of this array.
|
JsonArray |
JsonArray.add(long value)
Appends the JSON representation of the specified
long value to the end of this
array. |
JsonArray |
JsonArray.add(String value)
Appends the JSON representation of the specified string to the end of this array.
|
static JsonArray |
Json.array()
Creates a new empty JsonArray.
|
static JsonArray |
Json.array(boolean... values)
Creates a new JsonArray that contains the JSON representations of the given
boolean values. |
static JsonArray |
Json.array(double... values)
Creates a new JsonArray that contains the JSON representations of the given
double
values. |
static JsonArray |
Json.array(float... values)
Creates a new JsonArray that contains the JSON representations of the given
float
values. |
static JsonArray |
Json.array(int... values)
Creates a new JsonArray that contains the JSON representations of the given
int
values. |
static JsonArray |
Json.array(long... values)
Creates a new JsonArray that contains the JSON representations of the given
long
values. |
static JsonArray |
Json.array(String... strings)
Creates a new JsonArray that contains the JSON representations of the given strings.
|
JsonArray |
JsonValue.asArray()
Returns this JSON value as
JsonArray , assuming that this value represents a JSON array. |
JsonArray |
JsonArray.asArray() |
static JsonArray |
JsonArray.readFrom(Reader reader)
Deprecated.
Use
Json.parse(Reader) .asArray() instead |
static JsonArray |
JsonArray.readFrom(String string)
Deprecated.
Use
Json.parse(String) .asArray() instead |
JsonArray |
JsonArray.remove(int index)
Removes the element at the specified index from this array.
|
JsonArray |
JsonArray.set(int index,
boolean value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
boolean value. |
JsonArray |
JsonArray.set(int index,
double value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
double value. |
JsonArray |
JsonArray.set(int index,
float value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
float value. |
JsonArray |
JsonArray.set(int index,
int value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
int value. |
JsonArray |
JsonArray.set(int index,
JsonValue value)
Replaces the element at the specified position in this array with the specified JSON value.
|
JsonArray |
JsonArray.set(int index,
long value)
Replaces the element at the specified position in this array with the JSON representation of
the specified
long value. |
JsonArray |
JsonArray.set(int index,
String value)
Replaces the element at the specified position in this array with the JSON representation of
the specified string.
|
static JsonArray |
JsonArray.unmodifiableArray(JsonArray array)
Returns an unmodifiable wrapper for the specified JsonArray.
|
Modifier and Type | Method and Description |
---|---|
static JsonArray |
JsonArray.unmodifiableArray(JsonArray array)
Returns an unmodifiable wrapper for the specified JsonArray.
|
Constructor and Description |
---|
JsonArray(JsonArray array)
Creates a new JsonArray with the contents of the specified JSON array.
|
Modifier and Type | Method and Description |
---|---|
static JsonArray |
JsonUtil.getArray(JsonObject object,
String field)
Returns a field in a Json object as an array.
|
static JsonArray |
JsonUtil.getArray(JsonObject object,
String field,
JsonArray defaultValue)
Returns a field in a Json object as an array.
|
Modifier and Type | Method and Description |
---|---|
static JsonArray |
JsonUtil.getArray(JsonObject object,
String field,
JsonArray defaultValue)
Returns a field in a Json object as an array.
|
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.