com.atlassian.sal.core.usersettings
Class DefaultUserSettings

java.lang.Object
  extended by com.atlassian.sal.core.usersettings.DefaultUserSettings
All Implemented Interfaces:
UserSettings

public class DefaultUserSettings
extends Object
implements UserSettings


Nested Class Summary
static class DefaultUserSettings.Builder
           
 
Method Summary
static UserSettingsBuilder builder()
           
static UserSettingsBuilder builder(UserSettings userSettings)
           
 com.atlassian.fugue.Option<Boolean> getBoolean(String key)
           
 Set<String> getKeys()
           
 com.atlassian.fugue.Option<Long> getLong(String key)
           
 com.atlassian.fugue.Option<String> getString(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.