Class Overview
Convenience class on top of JSONObject. Mutable key-value pairs with promotion relevant information.
Summary
Nested Classes |
class |
PlacementContext.Location |
|
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Fields |
From class
org.json.JSONObject
public
static
final
Object |
NULL |
|
|
[Expand]
Inherited Methods |
From class
org.json.JSONObject
JSONObject
|
accumulate(String arg0, Object arg1)
|
Object
|
get(String arg0)
|
boolean
|
getBoolean(String arg0)
|
double
|
getDouble(String arg0)
|
int
|
getInt(String arg0)
|
JSONArray
|
getJSONArray(String arg0)
|
JSONObject
|
getJSONObject(String arg0)
|
long
|
getLong(String arg0)
|
String
|
getString(String arg0)
|
boolean
|
has(String arg0)
|
boolean
|
isNull(String arg0)
|
Iterator<String>
|
keys()
|
int
|
length()
|
JSONArray
|
names()
|
static
String
|
numberToString(Number arg0)
|
Object
|
opt(String arg0)
|
boolean
|
optBoolean(String arg0)
|
boolean
|
optBoolean(String arg0, boolean arg1)
|
double
|
optDouble(String arg0, double arg1)
|
double
|
optDouble(String arg0)
|
int
|
optInt(String arg0, int arg1)
|
int
|
optInt(String arg0)
|
JSONArray
|
optJSONArray(String arg0)
|
JSONObject
|
optJSONObject(String arg0)
|
long
|
optLong(String arg0)
|
long
|
optLong(String arg0, long arg1)
|
String
|
optString(String arg0)
|
String
|
optString(String arg0, String arg1)
|
JSONObject
|
put(String arg0, int arg1)
|
JSONObject
|
put(String arg0, long arg1)
|
JSONObject
|
put(String arg0, Object arg1)
|
JSONObject
|
put(String arg0, boolean arg1)
|
JSONObject
|
put(String arg0, double arg1)
|
JSONObject
|
putOpt(String arg0, Object arg1)
|
static
String
|
quote(String arg0)
|
Object
|
remove(String arg0)
|
JSONArray
|
toJSONArray(JSONArray arg0)
|
String
|
toString()
|
String
|
toString(int arg0)
|
static
Object
|
wrap(Object arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Constants
public
static
final
String
END_LOCATION
Constant Value:
"end_location"
public
static
final
String
KEY_DISPLAY_NAME
Constant Value:
"display_name"
public
static
final
String
KEY_LATITUDE
Constant Value:
"latitude"
public
static
final
String
KEY_LONGITUDE
Constant Value:
"longitude"
public
static
final
String
START_LOCATION
Constant Value:
"start_location"
Fields
Public Constructors
public
PlacementContext
()
public
PlacementContext
(Parcel source)
Public Methods
public
int
describeContents
()
public
LatLngPair
getEndLocation
()
Returns
- coordinate pair under end_location if set or null
public
LatLngPair
getStartLocation
()
Returns
- coordinate pair under start_location if set or null
public
void
writeToParcel
(Parcel dest, int flags)