Code example for CopyOnWriteArrayList

Methods: remove

0
        @Override 
        public Editor putBoolean(String key, boolean value) {
            if (isGlobal(key)) {
                mEditorGlobal.putBoolean(key, value);
            } else { 
                mEditorLocal.putBoolean(key, value);
            } 
            return this;
        } 
 
        // This method is not used. 
        @Override 
        public Editor putStringSet(String key, Set<String> values) {
            throw new UnsupportedOperationException();
        } 
    } 
 
    // Note the remove() and clear() of the returned Editor may not work as 
    // expected because it doesn't touch the global preferences at all. 
    @Override 
    public Editor edit() {