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.reflect |
This package contains utilities to work with Java reflection.
|
com.google.common.util.concurrent |
Concurrency utilities.
|
com.google.thirdparty.publicsuffix |
Modifier and Type | Field and Description |
---|---|
private static ImmutableMap<java.lang.String,CacheBuilderSpec.ValueParser> |
CacheBuilderSpec.VALUE_PARSERS
Map of names to ValueParser.
|
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableMap<K,V> |
LocalCache.getAll(java.lang.Iterable<? extends K> keys) |
ImmutableMap<K,V> |
LocalCache.LoadingSerializationProxy.getAll(java.lang.Iterable<? extends K> keys) |
ImmutableMap<K,V> |
LocalCache.LocalLoadingCache.getAll(java.lang.Iterable<? extends K> keys) |
ImmutableMap<K,V> |
AbstractLoadingCache.getAll(java.lang.Iterable<? extends K> keys) |
ImmutableMap<K,V> |
LoadingCache.getAll(java.lang.Iterable<? extends K> keys)
Returns a map of the values associated with
keys , creating or retrieving those values
if necessary. |
ImmutableMap<K,V> |
ForwardingLoadingCache.getAll(java.lang.Iterable<? extends K> keys) |
(package private) ImmutableMap<K,V> |
LocalCache.getAllPresent(java.lang.Iterable<?> keys) |
ImmutableMap<K,V> |
LocalCache.LocalManualCache.getAllPresent(java.lang.Iterable<?> keys) |
ImmutableMap<K,V> |
Cache.getAllPresent(java.lang.Iterable<?> keys)
Returns a map of the values associated with
keys in this cache. |
ImmutableMap<K,V> |
ForwardingCache.getAllPresent(java.lang.Iterable<?> keys) |
ImmutableMap<K,V> |
AbstractCache.getAllPresent(java.lang.Iterable<?> keys)
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. |
Modifier and Type | Class and Description |
---|---|
private class |
DenseImmutableTable.Column |
private class |
DenseImmutableTable.ColumnMap |
private static class |
DenseImmutableTable.ImmutableArrayMap<K,V>
An immutable map implementation backed by an indexed nullable array.
|
private class |
DenseImmutableTable.Row |
private class |
DenseImmutableTable.RowMap |
(package private) class |
EmptyImmutableBiMap
Bimap with no mappings.
|
(package private) class |
EmptyImmutableSortedMap<K,V>
An empty immutable sorted map.
|
class |
ImmutableBiMap<K,V>
An immutable
BiMap with reliable user-specified iteration order. |
(package private) class |
ImmutableEnumMap<K extends java.lang.Enum<K>,V>
Implementation of
ImmutableMap backed by a non-empty EnumMap . |
private static class |
ImmutableMap.MapViewOfValuesAsSingletonSets<K,V> |
class |
ImmutableSortedMap<K,V>
An immutable
SortedMap . |
(package private) class |
ImmutableSortedMapFauxverideShim<K,V>
"Overrides" the
ImmutableMap static methods that lack
ImmutableSortedMap equivalents with deprecated, exception-throwing
versions. |
(package private) class |
RegularImmutableBiMap<K,V>
Bimap with two or more mappings.
|
private class |
RegularImmutableBiMap.Inverse |
(package private) class |
RegularImmutableMap<K,V>
Implementation of
ImmutableMap with two or more entries. |
(package private) class |
RegularImmutableSortedMap<K,V>
An implementation of an immutable sorted map with one or more entries.
|
(package private) class |
SingletonImmutableBiMap<K,V>
Implementation of
ImmutableMap with exactly one entry. |
Modifier and Type | Field and Description |
---|---|
private ImmutableMap<C,java.lang.Integer> |
ArrayTable.columnKeyToIndex |
private ImmutableMap<C,java.lang.Integer> |
DenseImmutableTable.columnKeyToIndex |
private ImmutableMap<C,java.util.Map<R,V>> |
SparseImmutableTable.columnMap |
private ImmutableMap<C,java.util.Map<R,V>> |
DenseImmutableTable.columnMap |
private ImmutableMap<K,V> |
ImmutableMap.MapViewOfValuesAsSingletonSets.delegate |
private ImmutableMap<java.lang.Class<? extends B>,B> |
ImmutableClassToInstanceMap.delegate |
private ImmutableMap<E,java.lang.Integer> |
Sets.SubSet.inputSet |
(package private) ImmutableMap<E,java.lang.Integer> |
Sets.PowerSet.inputSet |
private ImmutableMap<K,java.lang.Integer> |
ArrayTable.ArrayMap.keyIndex |
private ImmutableMap<K,V> |
ImmutableMapKeySet.map |
(package private) ImmutableMap<K,?> |
ImmutableMapKeySet.KeySetSerializedForm.map |
(package private) ImmutableMap<K,V> |
ImmutableMapEntrySet.EntrySetSerializedForm.map |
private ImmutableMap<K,V> |
ImmutableMapValues.map |
(package private) ImmutableMap<?,V> |
ImmutableMapValues.SerializedForm.map |
private ImmutableMap<E,java.lang.Integer> |
RegularImmutableMultiset.map |
(package private) ImmutableMap<K,? extends ImmutableCollection<V>> |
ImmutableMultimap.map |
(package private) ImmutableMap<T,java.lang.Integer> |
ExplicitOrdering.rankMap |
private ImmutableMap<R,java.lang.Integer> |
ArrayTable.rowKeyToIndex |
private ImmutableMap<R,java.lang.Integer> |
DenseImmutableTable.rowKeyToIndex |
private ImmutableMap<R,java.util.Map<C,V>> |
SparseImmutableTable.rowMap |
private ImmutableMap<R,java.util.Map<C,V>> |
DenseImmutableTable.rowMap |
Modifier and Type | Method and Description |
---|---|
(package private) static <K extends java.lang.Enum<K>,V> |
ImmutableEnumMap.asImmutable(java.util.EnumMap<K,V> map) |
ImmutableMap<K,java.util.Collection<V>> |
ImmutableMultimap.asMap()
Returns an immutable map that associates each key with its corresponding
values in the multimap.
|
ImmutableMap<Range<K>,V> |
ImmutableRangeMap.asMapOfRanges() |
ImmutableMap<K,V> |
ImmutableMap.Builder.build()
Returns a newly-created immutable map.
|
private static <T> ImmutableMap<T,java.lang.Integer> |
ExplicitOrdering.buildRankMap(java.util.List<T> valuesInOrder) |
ImmutableMap<R,V> |
ImmutableTable.column(C columnKey)
Returns a view of all mappings that have the given column key.
|
ImmutableMap<R,V> |
SingletonImmutableTable.column(C columnKey) |
ImmutableMap<C,java.util.Map<R,V>> |
SparseImmutableTable.columnMap() |
abstract ImmutableMap<C,java.util.Map<R,V>> |
ImmutableTable.columnMap()
Returns a view that associates each column key with the corresponding map
from row keys to values.
|
ImmutableMap<C,java.util.Map<R,V>> |
SingletonImmutableTable.columnMap() |
ImmutableMap<C,java.util.Map<R,V>> |
DenseImmutableTable.columnMap() |
static <K,V> ImmutableMap<K,V> |
ImmutableMap.copyOf(java.util.Map<? extends K,? extends V> map)
Returns an immutable map containing the same entries as
map . |
private static <K extends java.lang.Enum<K>,V> |
ImmutableMap.copyOfEnumMap(java.util.Map<K,? extends V> original) |
private static <K,V> ImmutableMap<K,V> |
ImmutableMap.copyOfEnumMapUnsafe(java.util.Map<? extends K,? extends V> map) |
static ImmutableMap<java.lang.String,java.lang.String> |
Maps.fromProperties(java.util.Properties properties)
Creates an
ImmutableMap<String, String> from a Properties
instance. |
static <K extends java.lang.Enum<K>,V> |
Maps.immutableEnumMap(java.util.Map<K,? extends V> map)
Returns an immutable map instance containing the given entries.
|
private static <E> ImmutableMap<E,java.lang.Integer> |
ArrayTable.index(java.util.List<E> list) |
(package private) abstract ImmutableMap<K,java.lang.Integer> |
DenseImmutableTable.ImmutableArrayMap.keyToIndex() |
(package private) ImmutableMap<C,java.lang.Integer> |
DenseImmutableTable.Row.keyToIndex() |
(package private) ImmutableMap<R,java.lang.Integer> |
DenseImmutableTable.Column.keyToIndex() |
(package private) ImmutableMap<R,java.lang.Integer> |
DenseImmutableTable.RowMap.keyToIndex() |
(package private) ImmutableMap<C,java.lang.Integer> |
DenseImmutableTable.ColumnMap.keyToIndex() |
private static <E> ImmutableMap<E,java.lang.Integer> |
DenseImmutableTable.makeIndex(ImmutableSet<E> set) |
(package private) abstract ImmutableMap<K,V> |
ImmutableMapEntrySet.map() |
(package private) ImmutableMap<K,V> |
RegularImmutableMap.EntrySet.map() |
(package private) ImmutableMap<V,K> |
RegularImmutableBiMap.Inverse.InverseEntrySet.map() |
(package private) ImmutableMap<K,V> |
RegularImmutableSortedMap.EntrySet.map() |
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of()
Returns the empty map.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1)
Returns an immutable map containing a single entry.
|
static <K,V> ImmutableMap<K,V> |
ImmutableMap.of(K k1,
V v1,
K k2,
V v2)
Returns an immutable map containing the given entries, in order.
|
static <K,V> ImmutableMap<K,V> |
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,V> ImmutableMap<K,V> |
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,V> ImmutableMap<K,V> |
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<C,V> |
ImmutableTable.row(R rowKey)
Returns a view of all mappings that have the given row key.
|
ImmutableMap<R,java.util.Map<C,V>> |
SparseImmutableTable.rowMap() |
abstract ImmutableMap<R,java.util.Map<C,V>> |
ImmutableTable.rowMap()
Returns a view that associates each row key with the corresponding map from
column keys to values.
|
ImmutableMap<R,java.util.Map<C,V>> |
SingletonImmutableTable.rowMap() |
ImmutableMap<R,java.util.Map<C,V>> |
DenseImmutableTable.rowMap() |
<V> ImmutableMap<E,V> |
FluentIterable.toMap(Function<? super E,V> valueFunction)
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,V> ImmutableMap<K,V> |
Maps.toMap(java.lang.Iterable<K> keys,
Function<? super K,V> valueFunction)
Returns an immutable map whose keys are the distinct elements of
keys and whose value for each key was computed by valueFunction . |
static <K,V> ImmutableMap<K,V> |
Maps.toMap(java.util.Iterator<K> keys,
Function<? super K,V> valueFunction)
Returns an immutable map whose keys are the distinct elements of
keys and whose value for each key was computed by valueFunction . |
<K> ImmutableMap<K,E> |
FluentIterable.uniqueIndex(Function<? super E,K> keyFunction)
Returns an immutable map for which the
Map.values() 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,V> ImmutableMap<K,V> |
Maps.uniqueIndex(java.lang.Iterable<V> values,
Function<? super V,K> keyFunction)
Returns an immutable map for which the
Map.values() 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,V> ImmutableMap<K,V> |
Maps.uniqueIndex(java.util.Iterator<V> values,
Function<? super V,K> keyFunction)
Returns an immutable map for which the
Map.values() are the given
elements in the given order, and each key is the product of invoking a
supplied function on its corresponding value. |
private ImmutableMap<K,ImmutableSet<V>> |
ImmutableMap.viewMapValuesAsSingletonSets() |
Modifier and Type | Field and Description |
---|---|
private ImmutableMap<TypeToken<? extends B>,B> |
ImmutableTypeToInstanceMap.delegate |
private ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type> |
TypeResolver.TypeTable.map |
Modifier and Type | Method and Description |
---|---|
(package private) static ImmutableMap<java.net.URI,java.lang.ClassLoader> |
ClassPath.getClassPathEntries(java.lang.ClassLoader classloader) |
(package private) static ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type> |
TypeResolver.TypeMappingIntrospector.getTypeMappings(java.lang.reflect.Type contextType)
Returns type mappings using type parameters and type arguments found in
the generic superclass and the super interfaces of
contextClass . |
Constructor and Description |
---|
ImmutableTypeToInstanceMap(ImmutableMap<TypeToken<? extends B>,B> delegate) |
TypeTable(ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type> map) |
Modifier and Type | Method and Description |
---|---|
ImmutableMap<Service,java.lang.Long> |
ServiceManager.startupTimes()
Returns the service load times.
|
(package private) ImmutableMap<Service,java.lang.Long> |
ServiceManager.ServiceManagerState.startupTimes() |
Modifier and Type | Field and Description |
---|---|
static ImmutableMap<java.lang.String,PublicSuffixType> |
PublicSuffixPatterns.EXACT
If a hostname is contained as a key in this map, it is a public suffix.
|
static ImmutableMap<java.lang.String,PublicSuffixType> |
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<java.lang.String,PublicSuffixType> |
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.
|
Modifier and Type | Method and Description |
---|---|
(package private) static ImmutableMap<java.lang.String,PublicSuffixType> |
TrieParser.parseTrie(java.lang.CharSequence encoded)
Parses a serialized trie representation of a map of reversed public
suffixes into an immutable map of public suffixes.
|