Code example for ContentValues

Methods: containsKeygetAsInteger

0
        public Integer getAsInteger(String key) {
            return getAsInteger(key, null);
        } 
 
        public Integer getAsInteger(String key, Integer defaultValue) {
            if (mAfter != null && mAfter.containsKey(key)) {
                return mAfter.getAsInteger(key);
            } else if (mBefore != null && mBefore.containsKey(key)) {
                return mBefore.getAsInteger(key);
            } else { 
                return defaultValue;
            } 
        } 
 
        public String getMimetype() {
            return getAsString(Data.MIMETYPE);
        } 
 
        public Long getId() {
            return getAsLong(mIdColumn);
        }