Package org.apache.juneau.cp
Class DefaultSettingsMap
java.lang.Object
org.apache.juneau.cp.DefaultSettingsMap
A list of default settings.
Consists of a simple string-keyed map of arbitrary objects.
Notes:
- This class is not thread safe.
See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor.Copy constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a copy of this map.static DefaultSettingsMap
create()
Static creator.<T> Optional<T>
Returns the value of the specified setting if it exists.Sets the specified setting value.
-
Constructor Details
-
DefaultSettingsMap
protected DefaultSettingsMap()Constructor. -
DefaultSettingsMap
Copy constructor- Parameters:
value
- The object to copy.
-
-
Method Details
-
create
Static creator.- Returns:
- A new object.
-
set
Sets the specified setting value.- Parameters:
name
- The setting name.value
- The setting value.- Returns:
- This object.
-
get
Returns the value of the specified setting if it exists.- Type Parameters:
T
- The return type.- Parameters:
type
- The setting type.name
- The setting name.- Returns:
- The setting value.
-
copy
Creates a copy of this map.- Returns:
- A copy of this map.
-