Uses of Class
com.google.common.collect.ImmutableMap
-
Packages that use ImmutableMap 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 -
-
Uses of ImmutableMap in com.google.common.cache
Fields in com.google.common.cache declared as ImmutableMap Modifier and Type Field Description private static ImmutableMap<java.lang.String,CacheBuilderSpec.ValueParser>
CacheBuilderSpec. VALUE_PARSERS
Map of names to ValueParser.Methods in com.google.common.cache that return ImmutableMap Modifier and Type Method Description ImmutableMap<K,V>
AbstractLoadingCache. getAll(java.lang.Iterable<? extends K> keys)
ImmutableMap<K,V>
ForwardingLoadingCache. 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 withkeys
, 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>
AbstractCache. getAllPresent(java.lang.Iterable<?> keys)
Returns a map of the values associated withkeys
in this cache.ImmutableMap<K,V>
Cache. getAllPresent(java.lang.Iterable<?> keys)
Returns a map of the values associated withkeys
in this cache.ImmutableMap<K,V>
ForwardingCache. getAllPresent(java.lang.Iterable<?> keys)
(package private) ImmutableMap<K,V>
LocalCache. getAllPresent(java.lang.Iterable<?> keys)
ImmutableMap<K,V>
LocalCache.LocalManualCache. getAllPresent(java.lang.Iterable<?> keys)
-
Uses of ImmutableMap in com.google.common.collect
Subclasses of ImmutableMap in com.google.common.collect Modifier and Type Class 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>
ABiMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
ImmutableBiMapFauxverideShim<K,V>
"Overrides" theImmutableMap
static methods that lackImmutableBiMap
equivalents with deprecated, exception-throwing versions.(package private) class
ImmutableEnumMap<K extends java.lang.Enum<K>,V>
Implementation ofImmutableMap
backed by a non-emptyEnumMap
.(package private) static class
ImmutableMap.IteratorBasedImmutableMap<K,V>
private class
ImmutableMap.MapViewOfValuesAsSingletonSets
class
ImmutableSortedMap<K,V>
ANavigableMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
ImmutableSortedMapFauxverideShim<K,V>
"Overrides" theImmutableMap
static methods that lackImmutableSortedMap
equivalents with deprecated, exception-throwing versions.(package private) class
JdkBackedImmutableBiMap<K,V>
Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) class
JdkBackedImmutableMap<K,V>
Implementation of ImmutableMap backed by a JDK HashMap, which has smartness protecting against hash flooding.(package private) class
RegularImmutableBiMap<K,V>
Bimap with zero or more mappings.private class
RegularImmutableBiMap.Inverse
(package private) class
RegularImmutableMap<K,V>
Implementation ofImmutableMap
with two or more entries.(package private) class
SingletonImmutableBiMap<K,V>
Implementation ofImmutableMap
with exactly one entry.Fields in com.google.common.collect declared as ImmutableMap Modifier and Type Field Description private ImmutableMap<C,java.lang.Integer>
ArrayTable. columnKeyToIndex
private ImmutableMap<C,java.lang.Integer>
DenseImmutableTable. columnKeyToIndex
private ImmutableMap<C,ImmutableMap<R,V>>
DenseImmutableTable. columnMap
private ImmutableMap<C,ImmutableMap<R,V>>
SparseImmutableTable. columnMap
private ImmutableMap<java.lang.Class<? extends B>,B>
ImmutableClassToInstanceMap. delegate
(package private) static ImmutableMap<java.lang.Object,java.lang.Object>
RegularImmutableMap. EMPTY
(package private) ImmutableMap<E,java.lang.Integer>
Sets.PowerSet. inputSet
private ImmutableMap<E,java.lang.Integer>
Sets.SubSet. inputSet
private ImmutableMap<K,java.lang.Integer>
ArrayTable.ArrayMap. keyIndex
(package private) ImmutableMap<K,V>
ImmutableMapEntrySet.EntrySetSerializedForm. map
private ImmutableMap<K,V>
ImmutableMapEntrySet.RegularEntrySet. map
(package private) ImmutableMap<K,?>
ImmutableMapKeySet.KeySetSerializedForm. map
private ImmutableMap<K,V>
ImmutableMapKeySet. map
private ImmutableMap<K,V>
ImmutableMapValues. map
(package private) ImmutableMap<?,V>
ImmutableMapValues.SerializedForm. map
(package private) ImmutableMap<K,? extends ImmutableCollection<V>>
ImmutableMultimap. 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>
ArrayTable. rowKeyToIndex
private ImmutableMap<R,java.lang.Integer>
DenseImmutableTable. rowKeyToIndex
private ImmutableMap<R,ImmutableMap<C,V>>
DenseImmutableTable. rowMap
private ImmutableMap<R,ImmutableMap<C,V>>
SparseImmutableTable. rowMap
Fields in com.google.common.collect with type parameters of type ImmutableMap Modifier and Type Field Description private ImmutableMap<C,ImmutableMap<R,V>>
DenseImmutableTable. columnMap
private ImmutableMap<C,ImmutableMap<R,V>>
SparseImmutableTable. columnMap
private ImmutableMap<R,ImmutableMap<C,V>>
DenseImmutableTable. rowMap
private ImmutableMap<R,ImmutableMap<C,V>>
SparseImmutableTable. rowMap
Methods in com.google.common.collect that return ImmutableMap Modifier and Type Method Description ImmutableMap<Range<K>,V>
ImmutableRangeMap. asDescendingMapOfRanges()
(package private) static <K extends java.lang.Enum<K>,V>
ImmutableMap<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.(package private) ImmutableMap<K,V>
ImmutableMap.Builder. buildJdkBacked()
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>>
DenseImmutableTable. 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>>
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 asmap
.private static <K extends java.lang.Enum<K>,V>
ImmutableMap<K,V>ImmutableMap. copyOfEnumMap(java.util.EnumMap<K,? extends V> original)
(package private) static <K,V>
ImmutableMap<K,V>JdkBackedImmutableMap. create(int n, java.util.Map.Entry<K,V>[] entryArray)
Creates anImmutableMap
backed by a JDK HashMap.(package private) static <K,V>
ImmutableMap<K,V>RegularImmutableMap. fromEntries(java.util.Map.Entry<K,V>... entries)
(package private) static <K,V>
ImmutableMap<K,V>RegularImmutableMap. fromEntryArray(int n, java.util.Map.Entry<K,V>[] entryArray)
Creates an ImmutableMap from the first n entries in entryArray.static ImmutableMap<java.lang.String,java.lang.String>
Maps. fromProperties(java.util.Properties properties)
Creates anImmutableMap<String, String>
from aProperties
instance.(package private) ImmutableMap<R,V>
DenseImmutableTable.ColumnMap. getValue(int keyIndex)
(package private) ImmutableMap<C,V>
DenseImmutableTable.RowMap. getValue(int keyIndex)
static <K extends java.lang.Enum<K>,V>
ImmutableMap<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) ImmutableMap<R,java.lang.Integer>
DenseImmutableTable.Column. keyToIndex()
(package private) ImmutableMap<C,java.lang.Integer>
DenseImmutableTable.ColumnMap. keyToIndex()
(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.RowMap. keyToIndex()
(package private) abstract ImmutableMap<K,V>
ImmutableMapEntrySet. map()
(package private) ImmutableMap<K,V>
ImmutableMapEntrySet.RegularEntrySet. map()
(package private) ImmutableMap<V,K>
RegularImmutableBiMap.Inverse.InverseEntrySet. 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>>
DenseImmutableTable. 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>>
SparseImmutableTable. rowMap()
(package private) ImmutableMap<K,V>
CollectCollectors.EnumMapAccumulator. toImmutableMap()
<V> ImmutableMap<E,V>
FluentIterable. toMap(Function<? super E,V> valueFunction)
Returns an immutable map whose keys are the distinct elements of thisFluentIterable
and whose value for each key was computed byvalueFunction
.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 ofkeys
and whose value for each key was computed byvalueFunction
.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 ofkeys
and whose value for each key was computed byvalueFunction
.<K> ImmutableMap<K,E>
FluentIterable. uniqueIndex(Function<? super E,K> keyFunction)
Returns a map with the contents of thisFluentIterable
as itsvalues
, 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 givenvalues
, 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 givenvalues
, indexed by keys derived from those values.Methods in com.google.common.collect that return types with arguments of type ImmutableMap Modifier and Type Method Description (package private) static <T,K extends java.lang.Enum<K>,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>CollectCollectors. toImmutableEnumMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
(package private) static <T,K extends java.lang.Enum<K>,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>CollectCollectors. toImmutableEnumMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
static <T,K extends java.lang.Enum<K>,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>Maps. toImmutableEnumMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
Returns aCollector
that accumulates elements into anImmutableMap
whose keys and values are the result of applying the provided mapping functions to the input elements.static <T,K extends java.lang.Enum<K>,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>Maps. toImmutableEnumMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
Returns aCollector
that accumulates elements into anImmutableMap
whose keys and values are the result of applying the provided mapping functions to the input elements.(package private) static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>CollectCollectors. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>CollectCollectors. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>ImmutableBiMapFauxverideShim. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>ImmutableBiMapFauxverideShim. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
Deprecated.static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>ImmutableMap. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
Returns aCollector
that accumulates elements into anImmutableMap
whose keys and values are the result of applying the provided mapping functions to the input elements.static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>ImmutableMap. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
Returns aCollector
that accumulates elements into anImmutableMap
whose keys and values are the result of applying the provided mapping functions to the input elements.static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>ImmutableSortedMapFauxverideShim. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)
static <T,K,V>
java.util.stream.Collector<T,?,ImmutableMap<K,V>>ImmutableSortedMapFauxverideShim. toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.BinaryOperator<V> mergeFunction)
-
Uses of ImmutableMap in com.google.common.graph
Methods in com.google.common.graph that return ImmutableMap Modifier and Type Method 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)
-
Uses of ImmutableMap in com.google.common.reflect
Fields in com.google.common.reflect declared as ImmutableMap Modifier and Type Field 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
Methods in com.google.common.reflect that return ImmutableMap Modifier and Type Method Description (package private) static ImmutableMap<java.io.File,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 ofcontextClass
.Constructors in com.google.common.reflect with parameters of type ImmutableMap Constructor Description ImmutableTypeToInstanceMap(ImmutableMap<TypeToken<? extends B>,B> delegate)
TypeTable(ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type> map)
-
Uses of ImmutableMap in com.google.common.testing
Fields in com.google.common.testing declared as ImmutableMap Modifier and Type Field 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
Methods in com.google.common.testing that return ImmutableMap Modifier and Type Method Description private static <K,V>
ImmutableMap<K,V>FreshValueGenerator. generateImmutableMap(K key, V value)
-
Uses of ImmutableMap in com.google.common.util.concurrent
Methods in com.google.common.util.concurrent that return ImmutableMap Modifier and Type Method Description (package private) ImmutableMap<Service,java.lang.Long>
ServiceManager.ServiceManagerState. startupTimes()
ImmutableMap<Service,java.lang.Long>
ServiceManager. startupTimes()
Returns the service load times. -
Uses of ImmutableMap in com.google.thirdparty.publicsuffix
Fields in com.google.thirdparty.publicsuffix declared as ImmutableMap Modifier and Type Field 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.Methods in com.google.thirdparty.publicsuffix that return ImmutableMap Modifier and Type Method 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.
-