public interface Options
| 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  nullby 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. | 
void fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
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.
java.lang.UnsupportedOperationException - if the options
         instance does not support loading valuesjava.util.Map<java.lang.String,java.lang.Object> toMap()
Note that the implementation specifies whether this method returns a snapshot or view of options.
java.lang.Object put(java.lang.String key,
                     @Nullable
                     java.lang.Object value)
key - key with which the specified value is to be associatedvalue - value to be associated with the specified keykey, or null by defaultIllegalOptionException - if some property of the key or
         value prevents it from being stored in this options instancejava.lang.NullPointerException - if the key is nulljava.lang.UnsupportedOperationException - if the options
         instance does not support putting new valuesjava.lang.Object get(java.lang.String key)
null by default.key - the key whose associated value is to be returnednull by defaultjava.lang.NullPointerException - if the key is null