weimingfei
2 天以前 32f1fab3ce19db6539030c5e574212552a3f3abc
keyCabinet-android/lib_coremodel/src/main/java/com/doumee/lib_coremodel/util/SpUtil.java
@@ -104,6 +104,16 @@
        return getSharedPreferences().getInt(key, 0);
    }
    public static void saveLong(String key, Long value){
        SharedPreferences.Editor editor = getSharedPreferences().edit();
        editor.putLong(key, value);
        editor.commit();
    }
    public static Long getLong(String key){
        return getSharedPreferences().getLong(key, 0L);
    }
    public static boolean getBoolean(String key){
        return getSharedPreferences().getBoolean(key, false);
    }