public abstract class EditorHelper<T extends EditorHelper<T>> extends Object
Constructor and Description |
---|
EditorHelper(android.content.SharedPreferences sharedPreferences) |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
protected BooleanPrefEditorField<T> |
booleanField(String key) |
T |
clear() |
protected FloatPrefEditorField<T> |
floatField(String key) |
protected android.content.SharedPreferences.Editor |
getEditor() |
protected IntPrefEditorField<T> |
intField(String key) |
protected LongPrefEditorField<T> |
longField(String key) |
protected StringPrefEditorField<T> |
stringField(String key) |
protected StringSetPrefEditorField<T> |
stringSetField(String key) |
public EditorHelper(android.content.SharedPreferences sharedPreferences)
protected android.content.SharedPreferences.Editor getEditor()
public final T clear()
public final void apply()
protected IntPrefEditorField<T> intField(String key)
protected StringPrefEditorField<T> stringField(String key)
protected StringSetPrefEditorField<T> stringSetField(String key)
protected BooleanPrefEditorField<T> booleanField(String key)
protected FloatPrefEditorField<T> floatField(String key)
protected LongPrefEditorField<T> longField(String key)
Copyright © 2010-2014. All Rights Reserved.