public interface SettingsBuilder
Settings
Modifier and Type | Method and Description |
---|---|
SettingsBuilder |
add(String key,
boolean value)
Add an entry to the settings
|
SettingsBuilder |
add(String key,
double value)
Add an entry to the settings
|
SettingsBuilder |
add(String key,
int value)
Add an entry to the settings
|
SettingsBuilder |
add(String key,
long value)
Add an entry to the settings
|
SettingsBuilder |
add(String key,
String value)
Add an entry to the settings
|
SettingsBuilder |
addAll(Map<String,?> values)
Add all entries in the
Map of values. |
SettingsBuilder |
addAll(Settings settings)
Add all the
Settings |
Settings |
build() |
@Nonnull SettingsBuilder add(@Nonnull String key, @Nonnull String value)
key
- the key of the settingvalue
- the value of the settingthis
@Nonnull SettingsBuilder add(@Nonnull String key, boolean value)
key
- the key of the settingvalue
- the value of the settingthis
@Nonnull SettingsBuilder add(@Nonnull String key, int value)
key
- the key of the settingvalue
- the value of the settingthis
@Nonnull SettingsBuilder add(@Nonnull String key, long value)
key
- the key of the settingvalue
- the value of the settingthis
@Nonnull SettingsBuilder add(@Nonnull String key, double value)
key
- the key of the settingvalue
- the value of the settingthis
@Nonnull SettingsBuilder addAll(@Nonnull Map<String,?> values)
Map
of values.
Only maps with entries which could be manually via one of the add(key, value)
methods are acceptable.
values
- the map of valuesthis
.IllegalArgumentException
- if any of the entries are unacceptable@Nonnull SettingsBuilder addAll(@Nonnull Settings settings)
Settings
settings
- the settings instancethis
IllegalArgumentException
- if any of the entries are unacceptableCopyright © 2021 Atlassian. All rights reserved.