app/src/main/java/org/andstatus/app/data/ContentValuesUtils.java
/**
     * Move String value of the key from valuesIn to valuesOut and remove it from valuesIn
     * @param key
     * @param valuesIn
     * @param valuesOut  may be null
     * @return Key value, 0 if not found
     */
Move String value of the key from valuesIn to valuesOut and remove it from valuesIn
@param key
@param valuesIn
@param valuesOut  may be null
@return Key value, 0 if not found
Move String value of the key from valuesIn to valuesOut and remove it from valuesIn @param key @param valuesIn @param valuesOut may be null @return Key value 0 if not found
public static long moveLongKey(String key, String sourceSuffix, ContentValues valuesIn, ContentValues valuesOut) {
        long keyValue = 0;
        if (valuesIn != null && valuesIn.containsKey(key + sourceSuffix)) {
            Long value = valuesIn.getAsLong(key + sourceSuffix);
            keyValue = value == null ? 0 : value;
            valuesIn.remove(key + sourceSuffix);
            if (valuesOut != null) {
                valuesOut.put(key, value);
            }
        }
        return keyValue;
    }
public static long moveLongKey ( String key , String sourceSuffix , ContentValues valuesIn , ContentValues valuesOut ) { long keyValue = 0 ; if ( valuesIn != null && valuesIn . containsKey ( key + sourceSuffix ) ) { Long value = valuesIn . getAsLong ( key + sourceSuffix ) ; keyValue = value == null ? 0 : value ; valuesIn . remove ( key + sourceSuffix ) ; if ( valuesOut != null ) { valuesOut . put ( key , value ) ; } } return keyValue ; }
Move String value of the key from valuesIn to valuesOut and remove it from valuesIn
 @param key
 @param valuesIn
 @param valuesOut  may be null
 @return Key value, 0 if not found
Move String value of the key from valuesIn to valuesOut and remove it from valuesIn @param key @param valuesIn @param valuesOut may be null @return Key value 0 if not found