Package com.atlassian.bitbucket.setting
Interface SettingsBuilder
public interface SettingsBuilder
A builder for
Settings
-
Method Summary
Modifier and TypeMethodDescriptionAdd an entry to the settingsAdd an entry to the settingsAdd an entry to the settingsAdd an entry to the settingsAdd an entry to the settingsAdd all theSettings
Add all entries in theMap
of values.build()
-
Method Details
-
add
Add an entry to the settings- Parameters:
key
- the key of the settingvalue
- the value of the setting- Returns:
this
-
add
Add an entry to the settings- Parameters:
key
- the key of the settingvalue
- the value of the setting- Returns:
this
-
add
Add an entry to the settings- Parameters:
key
- the key of the settingvalue
- the value of the setting- Returns:
this
-
add
Add an entry to the settings- Parameters:
key
- the key of the settingvalue
- the value of the setting- Returns:
this
-
add
Add an entry to the settings- Parameters:
key
- the key of the settingvalue
- the value of the setting- Returns:
this
-
addAll
Add all entries in theMap
of values.Only maps with entries which could be manually via one of the
add(key, value)
methods are acceptable.- Parameters:
values
- the map of values- Returns:
this
.- Throws:
IllegalArgumentException
- if any of the entries are unacceptable
-
addAll
Add all theSettings
- Parameters:
settings
- the settings instance- Returns:
this
- Throws:
IllegalArgumentException
- if any of the entries are unacceptable
-
build
- Returns:
- the newly created
Settings
instance
-