Code example for WeakHashMap

Methods: get, put

0
            } 
        } 
 
        @Implementation 
        private static Map<String, Object> get(ContentResolver cr) {
            Map<String, Object> map = dataMap.get(cr);
            if (map == null) {
                map = new HashMap<String, Object>();
                dataMap.put(cr, map);
            } 
            return map;
        } 
    } 
 
    @Implements(Settings.System.class)
    public static class ShadowSystem extends SettingsImpl { 
    } 
 
    @Implements(Settings.Secure.class)
    public static class ShadowSecure extends SettingsImpl { 
    }