|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.core.usersettings.DefaultUserSettings.Builder
public static class DefaultUserSettings.Builder
| Method Summary | |
|---|---|
UserSettings |
build()
|
com.atlassian.fugue.Option<Object> |
get(String key)
|
Set<String> |
getKeys()
|
UserSettingsBuilder |
put(String key,
boolean value)
add an extra entry to the builder, overwriting any existing value stored against key (regardless of type) |
UserSettingsBuilder |
put(String key,
long value)
add an extra entry to the builder, overwriting any existing value stored against key (regardless of type) |
UserSettingsBuilder |
put(String key,
String value)
add an extra entry to the builder, overwriting any existing value stored against key (regardless of type) |
UserSettingsBuilder |
remove(String key)
remove an entry from the builder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public UserSettingsBuilder put(String key,
String value)
UserSettingsBuilder
put in interface UserSettingsBuilderkey - the key to store the value againstvalue - the non-null String to store, length cannot be longer than UserSettingsService.MAX_KEY_LENGTH
public UserSettingsBuilder put(String key,
boolean value)
UserSettingsBuilder
put in interface UserSettingsBuilderkey - the key to store the value againstvalue - the boolean to store
public UserSettingsBuilder put(String key,
long value)
UserSettingsBuilder
put in interface UserSettingsBuilderkey - the key to store the value againstvalue - the long to store
public UserSettingsBuilder remove(String key)
UserSettingsBuilder
remove in interface UserSettingsBuilderkey - the key for the entry to remove
public com.atlassian.fugue.Option<Object> get(String key)
get in interface UserSettingsBuilderkey - the setting key being queried
Some containing the value stored against key if one exists, a Option.none()
otherwise. Values can be of type String, Boolean or Long.public Set<String> getKeys()
getKeys in interface UserSettingsBuilderpublic UserSettings build()
build in interface UserSettingsBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||