Bug 753878 - Add UI component for selecting which engines to sync. r=nalexander

This commit is contained in:
Chenxia Liu
2012-10-09 15:09:08 -07:00
parent c131f5de9c
commit d0b6936c54
16 changed files with 584 additions and 48 deletions

View File

@@ -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) {