- add
Add a key/value. Allows nulls. Prefer ImmutableMap#builder() if that is not
needed.
- newBuilder
Static factory method for creating a fresh MapBuilder based on the contents of a
source Map.
- toMap
Returns an immutable Map where the entries are in no defined order. The map may
contain nulls. If th
- build
Returns an immutable Map containing the given key-value pairs. Prefer
ImmutableMap#of(Object,Object,
- toMutableMap
- singletonMap
Static factory method for creating an immutable Map with a single entry. This is
exactly equivalent
- addIfValueNotNull
Add a key/value only if the value is not null. If the intent is to produce an
immutable map that doe
- emptyMap
Static factory method for creating an empty map. This is exactly equivalent to
Collections.emptyMap(
- toHashMap
Returns a mutable HashMap where the entries are in no defined order.
- toLinkedHashMap
Returns a mutable LinkedHashMap where the entries are in the same order as they
were added.
- <init>
prefer #newBuilder() for inferred generic arguments.
- toListOrderedMap
Returns an immutable Map where the entries are in the same order as they were
added. The map may con