Package com.stata.sfi.util
Class Preference
java.lang.Object
com.stata.sfi.util.Preference
A set of utilities for loading and saving preferences.
- 
Method SummaryModifier and TypeMethodDescriptionstatic voiddeleteSavedPref(String section, String key) Delete a saved preference.static StringgetSavedPref(String section, String key, String defaultValue) Get a saved preference.static booleansetSavedPref(String section, String key, String value) Write a saved preference.
- 
Method Details- 
deleteSavedPrefDelete a saved preference.- Parameters:
- section- The preference section.
- key- The preference key.
 
- 
getSavedPrefGet a saved preference.- Parameters:
- section- The preference section.
- key- The preference key.
- defaultValue- The default value if the key is not found.
- Returns:
- The saved preference.
 
- 
setSavedPrefWrite a saved preference.- Parameters:
- section- The preference section.
- key- The preference key.
- value- The value to save.
- Returns:
- True if successful.
 
 
-