com.atlassian.sal.core.usersettings
Class DefaultUserSettings
java.lang.Object
com.atlassian.sal.core.usersettings.DefaultUserSettings
- All Implemented Interfaces:
- UserSettings
public class DefaultUserSettings
- extends Object
- implements UserSettings
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getString
public com.atlassian.fugue.Option<String> getString(String key)
- Specified by:
getString in interface UserSettings
- Parameters:
key - the setting key being queried
- Returns:
- a
Some containing the String stored against key if one exists (and is a String),
a Option.none() otherwise.
getBoolean
public com.atlassian.fugue.Option<Boolean> getBoolean(String key)
- Specified by:
getBoolean in interface UserSettings
- Parameters:
key - the setting key being queried
- Returns:
- a
Some containing the Boolean stored against key if one exists (and is a Boolean),
a Option.none() otherwise.
getLong
public com.atlassian.fugue.Option<Long> getLong(String key)
- Specified by:
getLong in interface UserSettings
- Parameters:
key - the setting key being queried
- Returns:
- a
Some containing the Long stored against key if one exists (and is a Long),
a Option.none() otherwise.
getKeys
public Set<String> getKeys()
- Specified by:
getKeys in interface UserSettings
- Returns:
- the set of keys known to this UserSettings
builder
public static UserSettingsBuilder builder()
builder
public static UserSettingsBuilder builder(UserSettings userSettings)
Copyright © 2015 Atlassian. All rights reserved.