-
public class BranchUtil.JsonReader
-
-
Field Summary
Fields Modifier and Type Field Description private final JSONObjectjsonObject
-
Constructor Summary
Constructors Constructor Description BranchUtil.JsonReader(JSONObject jsonObject)
-
Method Summary
Modifier and Type Method Description JSONObjectgetJsonObject()intreadOutInt(String key)IntegerreadOutInt(String key, Integer fallback)StringreadOutString(String key)StringreadOutString(String key, String fallback)longreadOutLong(String key)doublereadOutDouble(String key)DoublereadOutDouble(String key, Double fallback)booleanreadOutBoolean(String key)JSONArrayreadOutJsonArray(String key)ObjectreadOut(String key)booleanhas(String key)Iterator<String>keys()-
-
Constructor Detail
-
BranchUtil.JsonReader
BranchUtil.JsonReader(JSONObject jsonObject)
-
-
Method Detail
-
getJsonObject
JSONObject getJsonObject()
-
readOutInt
int readOutInt(String key)
-
readOutInt
Integer readOutInt(String key, Integer fallback)
-
readOutString
String readOutString(String key)
-
readOutString
String readOutString(String key, String fallback)
-
readOutLong
long readOutLong(String key)
-
readOutDouble
double readOutDouble(String key)
-
readOutDouble
Double readOutDouble(String key, Double fallback)
-
readOutBoolean
boolean readOutBoolean(String key)
-
readOutJsonArray
JSONArray readOutJsonArray(String key)
-
-
-
-