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 | Field and Description |
|---|---|
| pack-priv final Map | |
| private static final OptionMap | |
| pack-priv final Map |
| Modifier and Type | Method and Description |
|---|---|
| public static < the class of the map values T> OptionMap | |
| public Set | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public T | |
| public int |
| backingMap | back to summary |
|---|---|
| pack-priv final Map<String, T> backingMap | |
| EMPTY | back to summary |
|---|---|
| private static final OptionMap<?> EMPTY | |
| readonlyMap | back to summary |
|---|---|
| pack-priv final Map<String, T> readonlyMap | |
| OptionMap | back to summary |
|---|---|
| pack-priv OptionMap(Map<String, T> map) | |
| empty | back to summary |
|---|---|
| public static <T> OptionMap Returns an empty option map (immutable).
| |
| entrySet | back to summary |
|---|---|
| public Set Returns an unmodifiable | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| get | back to summary |
|---|---|
| public T get(String key) Returns the value to which the specified key is mapped, or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |