public interface OperaPreferences extends Iterable<OperaPreferences.OperaPreference>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OperaPreferences.OperaPreference
Interface representing individual preferences.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<OperaPreferences.OperaPreference> |
all()
Returns an iterable collection of all preferences present in the current object.
|
OperaPreferences.OperaPreference |
get(String section,
String key)
Returns the preference with the given section and key values.
|
void |
merge(OperaPreferences newPreferences)
Merges one representation with the given representation.
|
void |
set(OperaPreferences.OperaPreference preference)
Sets the given preference.
|
void |
set(String section,
String key,
Object value)
Sets the given preference information.
|
int |
size()
Returns the number of preferences in the representation.
|
Iterable<OperaPreferences.OperaPreference> all()
void merge(OperaPreferences newPreferences)
newPreferences - the preferences to mergevoid set(OperaPreferences.OperaPreference preference)
preference - the preference to add or updatevoid set(String section, String key, Object value)
set(OperaPreference) method.section - the section name, can be case-insensitivekey - the key name, can be case-insensitivevalue - the new value (will be treated as a String in OperaOperaPreferences.OperaPreference get(String section, String key)
section - the section name, can be case-insensitivekey - the key name, can be case-insensitiveint size()
Copyright © 2012. All Rights Reserved.