Example usage for Java com.google.common.collect ImmutableMap fields, constructors, methods, implement or subclass
The text is from its open source code.
Builder | builder() |
void | clear() |
boolean | containsKey(@Nullable Object key) |
ImmutableMap | copyOf(Map extends K, ? extends V> map) |
ImmutableMap | copyOf(Iterable extends Entry extends K, ? extends V>> entries) |
ImmutableSet | entrySet() |
boolean | equals(@Nullable Object object) |
void | forEach(BiConsumer super K, ? super V> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
V | getOrDefault(Object key, V defaultValue) Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key. |
boolean | isEmpty() |
ImmutableSet | keySet() |
ImmutableMap | of(K k1, V v1) |
ImmutableMap | of(K k1, V v1, K k2, V v2, K k3, V v3) |
ImmutableMap | of(K k1, V v1, K k2, V v2) |
ImmutableMap | of() |
ImmutableMap | of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) |
ImmutableMap | of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) |
V | put(K k, V v) |
int | size() Returns the number of key-value mappings in this map. |
String | toString() |
ImmutableCollection | values() |