public abstract class AbstractMapOptions extends com.google.common.collect.ForwardingMap<java.lang.String,java.lang.Object> implements Options
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMapOptions(java.util.Map<java.lang.String,java.lang.Object> map)
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
delegate()
Underlying map of options.
|
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. |
abstract 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).
|
void |
putAll(java.util.Map<? extends java.lang.String,?> map) |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, valuesprotected AbstractMapOptions(java.util.Map<java.lang.String,java.lang.Object> map)
protected final java.util.Map<java.lang.String,java.lang.Object> delegate()
delegate in class com.google.common.collect.ForwardingMap<java.lang.String,java.lang.Object>public 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 abstract java.lang.Object put(java.lang.String key,
@Nullable
java.lang.Object value)
Optionsput in interface java.util.Map<java.lang.String,java.lang.Object>put in interface Optionsput in class com.google.common.collect.ForwardingMap<java.lang.String,java.lang.Object>key - key with which the specified value is to be associatedvalue - value to be associated with the specified keykey, or null by defaultpublic void putAll(java.util.Map<? extends java.lang.String,?> map)
putAll in interface java.util.Map<java.lang.String,java.lang.Object>putAll in class com.google.common.collect.ForwardingMap<java.lang.String,java.lang.Object>public java.lang.Object get(java.lang.String key)
Optionsnull by default.