| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableListMultimap
A builder for creating immutable
ListMultimap instances, especially
public static final multimaps ("constant multimaps").
|
static class |
ImmutableSetMultimap
A builder for creating immutable
SetMultimap instances, especially
public static final multimaps ("constant multimaps").
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
ImmutableMultimap.builder()
Returns a new builder.
|
ImmutableMultimap |
ImmutableMultimap.Builder.orderKeysBy(Comparator
Specifies the ordering of the generated multimap's keys.
|
ImmutableMultimap |
ImmutableMultimap.Builder.orderValuesBy(Comparator
Specifies the ordering of the generated multimap's values for each key.
|
ImmutableMultimap |
ImmutableMultimap.Builder.put(K key, V value)
Adds a key-value mapping to the built multimap.
|
ImmutableMultimap |
ImmutableMultimap.Builder.put(Map
Adds an entry to the built multimap.
|
ImmutableMultimap |
ImmutableMultimap.Builder.putAll(K key, Iterable
Stores a collection of values with the same key in the built multimap.
|
ImmutableMultimap |
ImmutableMultimap.Builder.putAll(K key, V... values)
Stores an array of values with the same key in the built multimap.
|
ImmutableMultimap |
ImmutableMultimap.Builder.putAll(Multimap
Stores another multimap's entries in the built multimap.
|