| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingOptions() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Options |
delegate() |
void |
fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
Loads options from map to this options instance (optional operation).
|
java.lang.Object |
get(java.lang.String key)
Returns the value to which the specified key is mapped, or
null by default. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in this options
instance (optional operation).
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap()
Converts this options instance to map.
|
protected abstract Options delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic void fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
OptionsClears all present options and load contents only from specified map.
Note that the implementation specifies whether this method extracts map entries or provides a view of the map.
public java.util.Map<java.lang.String,java.lang.Object> toMap()
OptionsNote that the implementation specifies whether this method returns a snapshot or view of options.
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
Optionspublic java.lang.Object get(java.lang.String key)
Optionsnull by default.