Interface UserSettings
public interface UserSettings
An immutable container of user-specific settings.
Key is global - two values of different types can _not_ be stored against a common key.
-
Method Summary
-
Method Details
-
getString
- Parameters:
key- the setting key being queried- Returns:
- a
Somecontaining the String stored against key if one exists (and is a String), acom.atlassian.fugue.Option#none()otherwise. - Throws:
IllegalArgumentException- if key is null or longer thanUserSettingsService.MAX_KEY_LENGTHcharacters.
-
getBoolean
- Parameters:
key- the setting key being queried- Returns:
- a
Somecontaining the Boolean stored against key if one exists (and is a Boolean), acom.atlassian.fugue.Option#none()otherwise. - Throws:
IllegalArgumentException- if key is null or longer thanUserSettingsService.MAX_KEY_LENGTHcharacters.
-
getLong
- Parameters:
key- the setting key being queried- Returns:
- a
Somecontaining the Long stored against key if one exists (and is a Long), acom.atlassian.fugue.Option#none()otherwise. - Throws:
IllegalArgumentException- if key is null or longer thanUserSettingsService.MAX_KEY_LENGTHcharacters.
-
getKeys
- Returns:
- the set of keys known to this UserSettings
-