| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableListMultimap<K
A
ListMultimap whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
class |
ImmutableSetMultimap<K
A
SetMultimap whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMultimap |
ImmutableMultimap.Builder.build()
Returns a newly-created immutable multimap.
|
static <K |
ImmutableMultimap.copyOf(Iterable
Returns an immutable multimap containing the specified entries.
|
static <K |
ImmutableMultimap.copyOf(Multimap
Returns an immutable multimap containing the same mappings as
multimap, in the "key-grouped" iteration order described in the class documentation.
|
abstract ImmutableMultimap |
ImmutableMultimap.inverse()
Returns an immutable multimap which is the inverse of this one.
|
static <K |
ImmutableMultimap.of()
Returns an empty multimap.
|
static <K |
ImmutableMultimap.of(K k1, V v1)
Returns an immutable multimap containing a single entry.
|
static <K |
ImmutableMultimap.of(K k1, V v1, K k2, V v2)
Returns an immutable multimap containing the given entries, in order.
|
static <K |
ImmutableMultimap.of(K k1, V v1, K k2, V v2, K k3, V v3)
Returns an immutable multimap containing the given entries, in the "key-grouped" insertion order described in the
class documentation.
|
static <K |
ImmutableMultimap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
Returns an immutable multimap containing the given entries, in the "key-grouped" insertion order described in the
class documentation.
|
static <K |
ImmutableMultimap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
Returns an immutable multimap containing the given entries, in the "key-grouped" insertion order described in the
class documentation.
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
Multimaps.unmodifiableMultimap(ImmutableMultimap
Deprecated.
no need to use this
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMultimap |
ServiceManager.servicesByState()
Provides a snapshot of the current state of all the services under management.
|