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.graph |
An API for representing graph (node and edge) data.
|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
com.google.common.testing |
This package contains testing utilities.
|
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 |
---|---|
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. |
(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> |
ForwardingLoadingCache.getAll(java.lang.Iterable<? extends K> keys) |
ImmutableMap<K,V> |
AbstractLoadingCache.getAll(java.lang.Iterable<? extends K> 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. |
(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) |
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 |
class |
ImmutableBiMap<K,V>
A
BiMap whose contents will never change, with many other important properties detailed
at ImmutableCollection . |
(package private) class |
ImmutableEnumMap<K extends java.lang.Enum<K>,V>
Implementation of
ImmutableMap backed by a non-empty EnumMap . |
(package private) static class |
ImmutableMap.IteratorBasedImmutableMap<K,V> |
private class |
ImmutableMap.MapViewOfValuesAsSingletonSets |
class |
ImmutableSortedMap<K,V>
A
NavigableMap whose contents will never change, with many other important properties
detailed at ImmutableCollection . |
(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 zero or more mappings.
|
private class |
RegularImmutableBiMap.Inverse |
(package private) class |
RegularImmutableMap<K,V>
Implementation of
ImmutableMap with two 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> |
DenseImmutableTable.columnKeyToIndex |
private ImmutableMap<C,java.lang.Integer> |
ArrayTable.columnKeyToIndex |
private ImmutableMap<C,java.util.Map<R,V>> |
DenseImmutableTable.columnMap |
private ImmutableMap<C,java.util.Map<R,V>> |
SparseImmutableTable.columnMap |
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 |
(package private) ImmutableMap<K,? extends ImmutableCollection<V>> |
ImmutableMultimap.map |
private ImmutableMap<K,V> |
ImmutableMapKeySet.map |
(package private) ImmutableMap<K,?> |
ImmutableMapKeySet.KeySetSerializedForm.map |
private ImmutableMap<K,V> |
ImmutableMapEntrySet.RegularEntrySet.map |
(package private) ImmutableMap<K,V> |
ImmutableMapEntrySet.EntrySetSerializedForm.map |
private ImmutableMap<K,V> |
ImmutableMapValues.map |
(package private) ImmutableMap<?,V> |
ImmutableMapValues.SerializedForm.map |
(package private) ImmutableMap<K,?> |
RegularImmutableMap.KeySet.SerializedForm.map |
(package private) ImmutableMap<?,V> |
RegularImmutableMap.Values.SerializedForm.map |
private ImmutableMap<Range<K>,V> |
ImmutableRangeMap.SerializedForm.mapOfRanges |
(package private) ImmutableMap<T,java.lang.Integer> |
ExplicitOrdering.rankMap |
private ImmutableMap<R,java.lang.Integer> |
DenseImmutableTable.rowKeyToIndex |
private ImmutableMap<R,java.lang.Integer> |
ArrayTable.rowKeyToIndex |
private ImmutableMap<R,java.util.Map<C,V>> |
DenseImmutableTable.rowMap |
private ImmutableMap<R,java.util.Map<C,V>> |
SparseImmutableTable.rowMap |
Modifier and Type | Method and Description |
---|---|
ImmutableMap<Range<K>,V> |
ImmutableRangeMap.asDescendingMapOfRanges() |
(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.
|
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) |
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>> |
DenseImmutableTable.columnMap() |
ImmutableMap<C,java.util.Map<R,V>> |
SingletonImmutableTable.columnMap() |
ImmutableMap<C,java.util.Map<R,V>> |
SparseImmutableTable.columnMap() |
static <K,V> ImmutableMap<K,V> |
ImmutableMap.copyOf(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Returns an immutable map containing the specified entries.
|
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.EnumMap<K,? extends V> original) |
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.
|
(package private) static <E> ImmutableMap<E,java.lang.Integer> |
Maps.indexMap(java.util.Collection<E> list)
Returns a map from the ith element of list to i.
|
(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() |
(package private) ImmutableMap<V,K> |
RegularImmutableBiMap.Inverse.InverseEntrySet.map() |
(package private) abstract ImmutableMap<K,V> |
ImmutableMapEntrySet.map() |
(package private) ImmutableMap<K,V> |
ImmutableMapEntrySet.RegularEntrySet.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.
|
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>> |
DenseImmutableTable.rowMap() |
ImmutableMap<R,java.util.Map<C,V>> |
SingletonImmutableTable.rowMap() |
ImmutableMap<R,java.util.Map<C,V>> |
SparseImmutableTable.rowMap() |
<V> ImmutableMap<E,V> |
FluentIterable.toMap(Function<? super E,V> valueFunction)
Returns an immutable map whose keys are the distinct elements of this
FluentIterable
and whose value for each key was computed by valueFunction . |
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 a map with the contents of this
FluentIterable as its values , indexed
by keys derived from those values. |
static <K,V> ImmutableMap<K,V> |
Maps.uniqueIndex(java.lang.Iterable<V> values,
Function<? super V,K> keyFunction)
Returns a map with the given
values , indexed by keys derived from
those values. |
static <K,V> ImmutableMap<K,V> |
Maps.uniqueIndex(java.util.Iterator<V> values,
Function<? super V,K> keyFunction)
Returns a map with the given
values , indexed by keys derived from
those values. |
Modifier and Type | Method and Description |
---|---|
private static <N> ImmutableMap<N,GraphConnections<N,GraphConstants.Presence>> |
ImmutableGraph.getNodeConnections(Graph<N> graph) |
private static <N,V> ImmutableMap<N,GraphConnections<N,V>> |
ImmutableValueGraph.getNodeConnections(ValueGraph<N,V> graph) |
Constructor and Description |
---|
ValueBackedImpl(AbstractGraphBuilder<? super N> builder,
ImmutableMap<N,GraphConnections<N,V>> nodeConnections,
long edgeCount) |
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 |
private static ImmutableMap<java.lang.String,java.lang.reflect.Method> |
Types.TypeVariableInvocationHandler.typeVariableMethods |
Modifier and Type | Method and Description |
---|---|
(package private) static ImmutableMap<java.io.File,java.lang.ClassLoader> |
ClassPath.Scanner.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 | Field and Description |
---|---|
private static ImmutableMap<java.lang.Class<?>,java.lang.reflect.Method> |
FreshValueGenerator.EMPTY_GENERATORS |
private static ImmutableMap<java.lang.Class<?>,java.lang.reflect.Method> |
FreshValueGenerator.GENERATORS |
Modifier and Type | Method and Description |
---|---|
private static <K,V> ImmutableMap<K,V> |
FreshValueGenerator.generateImmutableMap(K key,
V value) |
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.
|