Code example for ContentValues

Methods: containsKeyputAllremove

0
        /** 
         * Return complete set of "before" and "after" values mixed together, 
         * giving full state regardless of edits. 
         */ 
        public ContentValues getCompleteValues() {
            final ContentValues values = new ContentValues();
            if (mBefore != null) {
                values.putAll(mBefore);
            } 
            if (mAfter != null) {
                values.putAll(mAfter);
            } 
            if (values.containsKey(GroupMembership.GROUP_ROW_ID)) {
                // Clear to avoid double-definitions, and prefer rows 
                values.remove(GroupMembership.GROUP_SOURCE_ID);
            } 
 
            return values;
        } 
 
        /**