-
- All Implemented Interfaces:
-
cn.thinkingdata.core.sp.StoragePlugin
public abstract class AbstractStoragePlugin implements StoragePlugin
-
-
Field Summary
Fields Modifier and Type Field Description public SharedPreferencesLoadersPrefsLoaderpublic Future<SharedPreferences>storedSharedPrefs
-
Constructor Summary
Constructors Constructor Description AbstractStoragePlugin(Context context, String name)
-
Method Summary
Modifier and Type Method Description abstract voidcreateStorage(Context context)abstract <T> SharedPreferencesStorage<T>getSharePreferenceStorage(int type)<T> voidsave(int type, T t)<T> Tget(int type)<T> Tget(int type, T t)-
-
Constructor Detail
-
AbstractStoragePlugin
AbstractStoragePlugin(Context context, String name)
-
-
Method Detail
-
createStorage
abstract void createStorage(Context context)
-
getSharePreferenceStorage
abstract <T> SharedPreferencesStorage<T> getSharePreferenceStorage(int type)
-
get
@Deprecated() <T> T get(int type)
-
-
-
-