public abstract class AbstractJSONImpl extends Object implements JSON
| Constructor and Description |
|---|
AbstractJSONImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,?>> |
checkObjectList(List<?> rawList)
Casts a list of unchecked JSON values to a list of checked objects in Java type.
|
List<String> |
checkStringList(List<?> rawList)
Casts a list of unchecked JSON values to a list of String.
|
List<?> |
getList(Map<String,?> obj,
String key) |
List<Map<String,?>> |
getListOfObjects(Map<String,?> obj,
String key)
Gets a list from an object for the given key, and verifies all entries are objects.
|
List<String> |
getListOfStrings(Map<String,?> obj,
String key)
Gets a list from an object for the given key, and verifies all entries are strings.
|
Double |
getNumberAsDouble(Map<String,?> obj,
String key)
Gets a number from an object for the given key.
|
Integer |
getNumberAsInteger(Map<String,?> obj,
String key)
Gets a number from an object for the given key, casted to an integer.
|
Long |
getNumberAsLong(Map<String,?> obj,
String key)
Gets a number from an object for the given key, casted to an long.
|
Map<String,?> |
getObject(Map<String,?> obj,
String key)
Gets an object from an object for the given key.
|
String |
getString(Map<String,?> obj,
String key)
Gets a string from an object for the given key.
|
boolean |
isSupport() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoJavaList, toJavaObject, toJsonpublic List<Map<String,?>> getListOfObjects(Map<String,?> obj, String key)
getListOfObjects in interface JSONpublic List<String> getListOfStrings(Map<String,?> obj, String key)
getListOfStrings in interface JSONpublic Map<String,?> getObject(Map<String,?> obj, String key)
public Double getNumberAsDouble(Map<String,?> obj, String key)
getNumberAsDouble in interface JSONpublic Integer getNumberAsInteger(Map<String,?> obj, String key)
getNumberAsInteger in interface JSONpublic Long getNumberAsLong(Map<String,?> obj, String key)
getNumberAsLong in interface JSONpublic String getString(Map<String,?> obj, String key)
public List<Map<String,?>> checkObjectList(List<?> rawList)
checkObjectList in interface JSONpublic List<String> checkStringList(List<?> rawList)
checkStringList in interface JSONCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.