public class CookJsonArray extends ArrayList<JsonValue> implements JsonArray
JsonValue.ValueType
modCount
Constructor and Description |
---|
CookJsonArray() |
Modifier and Type | Method and Description |
---|---|
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) |
String |
getString(int index) |
String |
getString(int index,
String defaultValue) |
<T extends JsonValue> |
getValuesAs(Class<T> clazz) |
JsonValue.ValueType |
getValueType() |
boolean |
isNull(int index) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public JsonValue.ValueType getValueType()
getValueType
in interface JsonValue
public JsonObject getJsonObject(int index)
getJsonObject
in interface JsonArray
public JsonArray getJsonArray(int index)
getJsonArray
in interface JsonArray
public JsonNumber getJsonNumber(int index)
getJsonNumber
in interface JsonArray
public JsonString getJsonString(int index)
getJsonString
in interface JsonArray
public <T extends JsonValue> List<T> getValuesAs(Class<T> clazz)
getValuesAs
in interface JsonArray
public boolean getBoolean(int index)
getBoolean
in interface JsonArray
public boolean getBoolean(int index, boolean defaultValue)
getBoolean
in interface JsonArray
Copyright © 2016. All rights reserved.