Code example for SharedPreferences

Methods: containsgetLong

0
        } else { 
            return mPrefLocal.getString(key, defValue);
        } 
    } 
 
    @Override 
    public int getInt(String key, int defValue) {
        if (isGlobal(key) || !mPrefLocal.contains(key)) {
            return mPrefGlobal.getInt(key, defValue);
        } else { 
            return mPrefLocal.getInt(key, defValue);
        } 
    } 
 
    @Override 
    public long getLong(String key, long defValue) {
        if (isGlobal(key) || !mPrefLocal.contains(key)) {
            return mPrefGlobal.getLong(key, defValue);
        } else { 
            return mPrefLocal.getLong(key, defValue);
Experience pair programming with AI  Get Codota for Java