Serializable
, Iterable<Object>
public class JsonArray extends JsonElement implements Iterable<Object>
Modifier | Constructor | Description |
---|---|---|
|
JsonArray() |
|
|
JsonArray(@NotNull Object[] array) |
|
|
JsonArray(@NotNull String jsonString) |
|
|
JsonArray(@NotNull List list) |
|
protected |
JsonArray(@NotNull List list,
boolean copy) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull JsonArray |
add(@Nullable Object value) |
|
@NotNull JsonArray |
addElement(@Nullable JsonElement value) |
|
@NotNull JsonArray |
addObject(@Nullable JsonObject value) |
|
boolean |
contains(@NotNull Object value) |
|
@NotNull JsonArray |
copy() |
|
@NotNull String |
encodePrettily() |
|
boolean |
equals(@Nullable Object o) |
|
<T> T |
get(int index) |
|
int |
hashCode() |
|
@NotNull Iterator<Object> |
iterator() |
|
int |
size() |
|
@NotNull Object[] |
toArray() |
|
@NotNull List |
toList() |
|
@NotNull String |
toString() |
|
@NotNull List |
toStringList() |
forEach, spliterator
asArray, asObject, isArray, isObject
public JsonArray(@NotNull @NotNull List list)
protected JsonArray(@NotNull @NotNull List list, boolean copy)
public JsonArray(@NotNull @NotNull Object[] array)
public JsonArray()
public JsonArray(@NotNull @NotNull String jsonString)
@NotNull public @NotNull JsonArray addObject(@Nullable @Nullable JsonObject value)
@NotNull public @NotNull JsonArray addElement(@Nullable @Nullable JsonElement value)
public boolean contains(@NotNull @NotNull Object value)
@NotNull public @NotNull JsonArray copy()
@Nullable public <T> T get(int index)
@NotNull public @NotNull String encodePrettily() throws EncodeException
EncodeException
public int size()
@NotNull public @NotNull Object[] toArray()
@NotNull public @NotNull List toList()
@NotNull public @NotNull List toStringList()
Copyright © 2017. All rights reserved.