public final class CrashReportData extends EnumMap<ReportField,String>
ReportField
enum values as keys.
This is basically the source of Properties
adapted to extend an
EnumMap instead of Hashtable and with a few tweaks to avoid losing crazy
amounts of android time in the generation of a date comment when storing to
file.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CrashReportData()
Constructs a new
Properties object. |
Modifier and Type | Method and Description |
---|---|
String |
getProperty(ReportField key)
Returns the property with the specified name.
|
org.json.JSONObject |
toJSON() |
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, remove, size, values
isEmpty, toString
public String getProperty(ReportField key)
key
- the name of the property to find.null
if it can't be found.public org.json.JSONObject toJSON() throws org.acra.util.JSONReportBuilder.JSONReportException
org.acra.util.JSONReportBuilder.JSONReportException
Copyright © 2010-2015. All Rights Reserved.