T - the class of the map valuespublic final class OptionMap<T>
extends java.lang.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).
|
java.util.Set<java.util.Map.Entry<java.lang.String,T>> |
entrySet()
Returns an unmodifiable
Set view of the mappings contained in this map. |
boolean |
equals(java.lang.Object obj) |
T |
get(java.lang.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(java.lang.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 java.util.Set<java.util.Map.Entry<java.lang.String,T>> entrySet()
Set view of the mappings contained in this map.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object