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