public abstract class AbstractOptions extends java.lang.Object implements Options
Modifier | Constructor and Description |
---|---|
protected |
AbstractOptions()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
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.lang.String |
toString() |
public void fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
Options
Clears 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.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object put(java.lang.String key, java.lang.Object value)
Options
public java.lang.Object get(java.lang.String key)
Options
null
by default.