public final class CrashReportData extends Object
| Constructor and Description |
|---|
CrashReportData() |
CrashReportData(String json) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(ReportField key) |
boolean |
containsKey(String key) |
Object |
get(String key) |
String |
getString(ReportField key)
Returns the property with the specified key.
|
void |
put(ReportField key,
boolean value) |
void |
put(ReportField key,
double value) |
void |
put(ReportField key,
int value) |
void |
put(ReportField key,
JSONArray value) |
void |
put(ReportField key,
JSONObject value) |
void |
put(ReportField key,
long value) |
void |
put(ReportField key,
String value) |
void |
put(String key,
boolean value) |
void |
put(String key,
double value) |
void |
put(String key,
int value) |
void |
put(String key,
JSONArray value) |
void |
put(String key,
JSONObject value) |
void |
put(String key,
long value) |
void |
put(String key,
String value) |
String |
toJSON() |
Map<String,Object> |
toMap() |
public CrashReportData()
public CrashReportData(String json) throws JSONException
JSONExceptionpublic void put(@NonNull
String key,
boolean value)
public void put(@NonNull
String key,
double value)
public void put(@NonNull
String key,
int value)
public void put(@NonNull
String key,
long value)
public void put(@NonNull
String key,
@Nullable
JSONObject value)
public void put(@NonNull
ReportField key,
boolean value)
public void put(@NonNull
ReportField key,
double value)
public void put(@NonNull
ReportField key,
int value)
public void put(@NonNull
ReportField key,
long value)
public void put(@NonNull
ReportField key,
@Nullable
String value)
public void put(@NonNull
ReportField key,
@Nullable
JSONObject value)
public void put(@NonNull
ReportField key,
@Nullable
JSONArray value)
public String getString(@NonNull ReportField key)
key - the key of the property to find.null if it can't be found.public boolean containsKey(@NonNull
String key)
public boolean containsKey(@NonNull
ReportField key)
@NonNull public String toJSON() throws JSONException
JSONException