Code example for ContentValues

Methods: size

0
 
    /** 
     * When "after" has no changes, action is no-op 
     */ 
    public boolean isNoop() { 
        return beforeExists() && (mAfter != null && mAfter.size() == 0);
    } 
 
    /** 
     * When no "before" id, and has "after", action is "insert" 
     */ 
    public boolean isInsert() { 
        return !beforeExists() && (mAfter != null);
    } 
 
    public void markDeleted() { 
        mAfter = null;
    } 
 
    /** 
     * Ensure that our internal structure is ready for storing updates.