FileDocCategorySizeDatePackage
BridgeSharedPreferences.javaAPI DocAndroid 5.1 API3366Thu Mar 12 22:22:44 GMT 2015com.android.layoutlib.bridge.android

BridgeSharedPreferences

public class BridgeSharedPreferences extends Object implements android.content.SharedPreferences
An empty shared preferences implementation which doesn't store anything. It always returns null, 0 or false.

Fields Summary
private Editor
mEditor
Constructors Summary
Methods Summary
public booleancontains(java.lang.String key)

        return false;
    
public Editoredit()

        if (mEditor != null) {
            return mEditor;
        }
        mEditor = new Editor() {
            @Override
            public Editor putString(String key, String value) {
                return null;
            }

            @Override
            public Editor putStringSet(String key, Set<String> values) {
                return null;
            }

            @Override
            public Editor putInt(String key, int value) {
                return null;
            }

            @Override
            public Editor putLong(String key, long value) {
                return null;
            }

            @Override
            public Editor putFloat(String key, float value) {
                return null;
            }

            @Override
            public Editor putBoolean(String key, boolean value) {
                return null;
            }

            @Override
            public Editor remove(String key) {
                return null;
            }

            @Override
            public Editor clear() {
                return null;
            }

            @Override
            public boolean commit() {
                return false;
            }

            @Override
            public void apply() {
            }
        };
        return mEditor;
    
public java.util.MapgetAll()

        return null;
    
public booleangetBoolean(java.lang.String key, boolean defValue)

        return false;
    
public floatgetFloat(java.lang.String key, float defValue)

        return 0;
    
public intgetInt(java.lang.String key, int defValue)

        return 0;
    
public longgetLong(java.lang.String key, long defValue)

        return 0;
    
public java.lang.StringgetString(java.lang.String key, java.lang.String defValue)

        return null;
    
public java.util.SetgetStringSet(java.lang.String key, java.util.Set defValues)

        return null;
    
public voidregisterOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener)

    
public voidunregisterOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener)