public class JsonArrayImpl
extends java.lang.Object
Constructor and Description |
---|
JsonArrayImpl(javax.json.JsonArray jsonArray) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
JsonValue element) |
boolean |
add(JsonValue e) |
boolean |
addAll(java.util.Collection<? extends JsonValue> c) |
boolean |
addAll(int index,
java.util.Collection<? extends JsonValue> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
JsonValue |
get(int index) |
boolean |
getBoolean(int index) |
boolean |
getBoolean(int index,
boolean defaultValue) |
int |
getInt(int index) |
int |
getInt(int index,
int defaultValue) |
JsonArray |
getJsonArray(int index) |
JsonNumber |
getJsonNumber(int index) |
JsonObject |
getJsonObject(int index) |
JsonString |
getJsonString(int index) |
java.lang.String |
getString(int index) |
java.lang.String |
getString(int index,
java.lang.String defaultValue) |
<T extends JsonValue> |
getValuesAs(java.lang.Class<T> clazz) |
ValueType |
getValueType() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
boolean |
isNull(int index) |
java.util.Iterator<JsonValue> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<JsonValue> |
listIterator() |
java.util.ListIterator<JsonValue> |
listIterator(int index) |
JsonValue |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
JsonValue |
set(int index,
JsonValue element) |
int |
size() |
java.util.List<JsonValue> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
public JsonObject getJsonObject(int index)
public JsonArray getJsonArray(int index)
public JsonNumber getJsonNumber(int index)
public JsonString getJsonString(int index)
public <T extends JsonValue> java.util.List<T> getValuesAs(java.lang.Class<T> clazz)
public java.lang.String getString(int index)
public java.lang.String getString(int index, java.lang.String defaultValue)
public int getInt(int index)
public int getInt(int index, int defaultValue)
public boolean getBoolean(int index)
public boolean getBoolean(int index, boolean defaultValue)
public boolean isNull(int index)
public ValueType getValueType()
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<JsonValue> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(JsonValue e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends JsonValue> c)
public boolean addAll(int index, java.util.Collection<? extends JsonValue> c)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public JsonValue get(int index)
public JsonValue set(int index, JsonValue element)
public void add(int index, JsonValue element)
public JsonValue remove(int index)
public int indexOf(java.lang.Object o)
public int lastIndexOf(java.lang.Object o)
public java.util.ListIterator<JsonValue> listIterator()
public java.util.ListIterator<JsonValue> listIterator(int index)
public java.util.List<JsonValue> subList(int fromIndex, int toIndex)
public java.lang.String toString()
toString
in class java.lang.Object