public class CookJsonArray extends ArrayList<JsonValue> implements JsonArray
JsonValue.ValueTypemodCount| 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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, toString, wait, wait, waitadd, 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, toArrayparallelStream, removeIf, streampublic JsonValue.ValueType getValueType()
getValueType in interface JsonValuepublic JsonObject getJsonObject(int index)
getJsonObject in interface JsonArraypublic JsonArray getJsonArray(int index)
getJsonArray in interface JsonArraypublic JsonNumber getJsonNumber(int index)
getJsonNumber in interface JsonArraypublic JsonString getJsonString(int index)
getJsonString in interface JsonArraypublic <T extends JsonValue> List<T> getValuesAs(Class<T> clazz)
getValuesAs in interface JsonArraypublic boolean getBoolean(int index)
getBoolean in interface JsonArraypublic boolean getBoolean(int index,
boolean defaultValue)
getBoolean in interface JsonArrayCopyright © 2016. All rights reserved.