Java com.google.common.collect ImmutableMap fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect ImmutableMap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect ImmutableMap.

The text is from its open source code.

Method

Builderbuilder()
voidclear()
booleancontainsKey(@Nullable Object key)
ImmutableMapcopyOf(Map map)
ImmutableMapcopyOf(Iterable> entries)
ImmutableSet>entrySet()
booleanequals(@Nullable Object object)
voidforEach(BiConsumer action)
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
Vget(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
VgetOrDefault(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.
booleanisEmpty()
ImmutableSetkeySet()
ImmutableMapof(K k1, V v1)
ImmutableMapof(K k1, V v1, K k2, V v2, K k3, V v3)
ImmutableMapof(K k1, V v1, K k2, V v2)
ImmutableMapof()
ImmutableMapof(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
ImmutableMapof(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
Vput(K k, V v)
intsize()
Returns the number of key-value mappings in this map.
StringtoString()
ImmutableCollectionvalues()