T
- the class of the map valuespublic final class OptionMap<T> extends Object
String
keys and values. Allows to create options
to group/accumulate key=value
pairs, with a common prefix; whose keys are not
known beforehand e.g. user defined properties.Modifier and Type | Method and Description |
---|---|
static <T> OptionMap<T> |
empty()
Returns an empty option map (immutable).
|
Set<Map.Entry<String,T>> |
entrySet()
Returns an unmodifiable
Set view of the mappings contained in this map. |
boolean |
equals(Object obj) |
T |
get(String key)
Returns the value to which the specified key is mapped, or
null if this option map
contains no mapping for the key. |
int |
hashCode() |
public static <T> OptionMap<T> empty()
T
- the class of the map valuespublic T get(String key)
null
if this option map
contains no mapping for the key.key
- the key whose associated value is to be returnednull
if this map contains
no mapping for the keypublic Set<Map.Entry<String,T>> entrySet()
Set
view of the mappings contained in this map.