Code example for CopyOnWriteArrayList

Methods: add

0
                mEditorLocal.putFloat(key, value);
            } 
            return this;
        } 
 
        @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();
        } 
    }