| Package | Description |
|---|---|
| com.google.common.cache |
This package contains caching utilities.
|
| 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.
|
| com.google.thirdparty.publicsuffix |
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap |
LoadingCache.getAll(Iterable
Returns a map of the values associated with
keys, creating or retrieving those values if necessary.
|
ImmutableMap |
ForwardingLoadingCache.getAll(Iterable
|
ImmutableMap |
AbstractLoadingCache.getAll(Iterable
|
ImmutableMap |
ForwardingCache.getAllPresent(Iterable
|
ImmutableMap |
AbstractCache.getAllPresent(Iterable
This implementation of
getAllPresent lacks any insight into the internal cache data structure, and is thus forced to return the query keys instead of the cached keys.
|
ImmutableMap |
Cache.getAllPresent(Iterable
Returns a map of the values associated with
keys in this cache.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableBiMap<K
An immutable
BiMap with reliable user-specified iteration order.
|
class |
ImmutableSortedMap<K
An immutable
SortedMap.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap |
ImmutableMultimap.asMap()
Returns an immutable map that associates each key with its corresponding values in the multimap.
|
ImmutableMap |
ImmutableRangeMap.asMapOfRanges()
|
ImmutableMap |
ImmutableMap.Builder.build()
Returns a newly-created immutable map.
|
ImmutableMap |
ImmutableTable.column(C columnKey)
Returns a view of all mappings that have the given column key.
|
abstract ImmutableMap |
ImmutableTable.columnMap()
Returns a view that associates each column key with the corresponding map from row keys to values.
|
static <K |
ImmutableMap.copyOf(Map
Returns an immutable map containing the same entries as
map.
|
static ImmutableMap |
Maps.fromProperties(Properties
Creates an
ImmutableMap<String, String> from a
Properties instance.
|
static <K extends Enum |
Maps.immutableEnumMap(Map
Returns an immutable map instance containing the given entries.
|
static <K |
ImmutableMap.of()
Returns the empty map.
|
static <K |
ImmutableMap.of(K k1, V v1)
Returns an immutable map containing a single entry.
|
static <K |
ImmutableMap.of(K k1, V v1, K k2, V v2)
Returns an immutable map containing the given entries, in order.
|
static <K |
ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3)
Returns an immutable map containing the given entries, in order.
|
static <K |
ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
Returns an immutable map containing the given entries, in order.
|
static <K |
ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
Returns an immutable map containing the given entries, in order.
|
ImmutableMap |
ImmutableTable.row(R rowKey)
Returns a view of all mappings that have the given row key.
|
abstract ImmutableMap |
ImmutableTable.rowMap()
Returns a view that associates each row key with the corresponding map from column keys to values.
|
<V> ImmutableMap |
FluentIterable.toMap(Function
Returns an immutable map for which the elements of this
FluentIterable are the keys in the same order, mapped to values by the given function.
|
static <K |
Maps.toMap(Iterable
Returns an immutable map whose keys are the distinct elements of
keys and whose value for each key was computed by
valueFunction.
|
static <K |
Maps.toMap(Iterator
Returns an immutable map whose keys are the distinct elements of
keys and whose value for each key was computed by
valueFunction.
|
<K> ImmutableMap |
FluentIterable.uniqueIndex(Function
Returns an immutable map for which the
Map are the elements of this
FluentIterable in the given order, and each key is the product of invoking a supplied function on its corresponding value.
|
static <K |
Maps.uniqueIndex(Iterable
Returns an immutable map for which the
Map are the given elements in the given order, and each key is the product of invoking a supplied function on its corresponding value.
|
static <K |
Maps.uniqueIndex(Iterator
Returns an immutable map for which the
Map are the given elements in the given order, and each key is the product of invoking a supplied function on its corresponding value.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap |
ServiceManager.startupTimes()
Returns the service load times.
|
| Modifier and Type | Field and Description |
|---|---|
static ImmutableMap |
PublicSuffixPatterns.EXACT
If a hostname is contained as a key in this map, it is a public suffix.
|
static ImmutableMap |
PublicSuffixPatterns.EXCLUDED
The elements in this map would pass the UNDER test, but are known not to be public suffixes and are thus excluded from consideration.
|
static ImmutableMap |
PublicSuffixPatterns.UNDER
If a hostname is not a key in the EXCLUDE map, and if removing its leftmost component results in a name which is a key in this map, it is a public suffix.
|