Bug 753878 - Add UI component for selecting which engines to sync. r=nalexander
This commit is contained in:
@@ -125,6 +125,7 @@ public class ExtendedJSONObject {
|
||||
|
||||
/**
|
||||
* Return a server timestamp value as milliseconds since epoch.
|
||||
*
|
||||
* @param key
|
||||
* @return A Long, or null if the value is non-numeric or doesn't exist.
|
||||
*/
|
||||
@@ -166,6 +167,18 @@ public class ExtendedJSONObject {
|
||||
map.put(key, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove key-value pair from JSONObject.
|
||||
*
|
||||
* @param key
|
||||
* to be removed.
|
||||
* @return true if key exists and was removed, false otherwise.
|
||||
*/
|
||||
public boolean remove(String key) {
|
||||
Object res = this.object.remove(key);
|
||||
return (res != null);
|
||||
}
|
||||
|
||||
public ExtendedJSONObject getObject(String key) throws NonObjectJSONException {
|
||||
Object o = this.object.get(key);
|
||||
if (o == null) {
|
||||
|
||||
Reference in New Issue
Block a user