FastSharedPreferences implements EnhancedSharedPreferences { public static FastSharedPreferences get(String name) { if (name == null || name.length() == 0) { return null; } synchronized (FastSharedPreferences.class) { return FSP_CACHE.get(name); } } private  FastSharedPreferences(String name); static void init(Context context); static void setMaxSize(int maxSize); static FastSharedPreferences get(String name); @Override Map<String, ?> getAll(); @Nullable @Override String getString(String s, @Nullable String s1); @Override Serializable getSerializable(String key, @Nullable Serializable defValue); @Nullable @Override Set<String> getStringSet(String s, @Nullable Set<String> set); @Override int getInt(String s, int i); @Override long getLong(String s, long l); @Override float getFloat(String s, float v); @Override boolean getBoolean(String s, boolean b); @Override boolean contains(String s); @Override EnhancedEditor edit(); @Override void registerOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener onSharedPreferenceChangeListener); @Override void unregisterOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener onSharedPreferenceChangeListener);  }
@Test public void testLoad() { FastSharedPreferences sharedPreferences = FastSharedPreferences.get("test_load"); assertNotNull(sharedPreferences); }