Code example for Map

Methods: get, remove

0
mAddonCallbacks.put(zipFile, addonCallbacks);
    } 
 
    private void unregisterCallbacks(String zipFile) {
        Map<String, GeckoEventListener> callbacks = mAddonCallbacks.remove(zipFile);
        if (callbacks == null) {
            Log.w(LOGTAG, "Attempting to unregister callbacks from zipfile [" + zipFile + "] which has no callbacks registered.");
            return; 
        } 
        for (String event : callbacks.keySet()) {
            mDispatcher.unregisterEventListener(event, callbacks.get(event));
        } 
    } 
 
    private static class CallbackWrapper implements GeckoEventResponder { 
        private final Handler.Callback mDelegate;
        private Bundle mBundle;
 
        CallbackWrapper(Handler.Callback delegate) {
            mDelegate = delegate;