Package org.openjdk.jmc.common.util
Interface IPreferenceValueProvider
-
public interface IPreferenceValueProvider
Provides mechanisms for getting values forTypedPreference
preferences. This is an abstraction so that different types of backing stores can be used.
-
-
Field Summary
Fields Modifier and Type Field Description static IPreferenceValueProvider
DEFAULT_VALUES
A default implementation that only returns the default value for each preference.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getPreferenceValue(TypedPreference<T> preference)
Get the value of a preference.
-
-
-
Field Detail
-
DEFAULT_VALUES
static final IPreferenceValueProvider DEFAULT_VALUES
A default implementation that only returns the default value for each preference.
-
-
Method Detail
-
getPreferenceValue
<T> T getPreferenceValue(TypedPreference<T> preference)
Get the value of a preference.- Parameters:
preference
- preference to get the value for- Returns:
- the preference value
-
-