Package com.google.common.collect
Class ImmutableMap.MapViewOfValuesAsSingletonSets
- java.lang.Object
-
- com.google.common.collect.ImmutableMap<K,V>
-
- com.google.common.collect.ImmutableMap.IteratorBasedImmutableMap<K,ImmutableSet<V>>
-
- com.google.common.collect.ImmutableMap.MapViewOfValuesAsSingletonSets
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<K,ImmutableSet<V>>
- Enclosing class:
- ImmutableMap<K,V>
private final class ImmutableMap.MapViewOfValuesAsSingletonSets extends ImmutableMap.IteratorBasedImmutableMap<K,ImmutableSet<V>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableMap
ImmutableMap.Builder<K,V>, ImmutableMap.IteratorBasedImmutableMap<K,V>, ImmutableMap.SerializedForm
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.ImmutableMap
EMPTY_ENTRY_ARRAY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MapViewOfValuesAsSingletonSets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(java.lang.Object key)
(package private) UnmodifiableIterator<java.util.Map.Entry<K,ImmutableSet<V>>>
entryIterator()
ImmutableSet<V>
get(java.lang.Object key)
int
hashCode()
(package private) boolean
isHashCodeFast()
(package private) boolean
isPartialView()
ImmutableSet<K>
keySet()
Returns an immutable set of the keys in this map.int
size()
-
Methods inherited from class com.google.common.collect.ImmutableMap.IteratorBasedImmutableMap
createEntrySet
-
Methods inherited from class com.google.common.collect.ImmutableMap
asMultimap, builder, checkNoConflict, clear, containsValue, copyOf, copyOf, createKeySet, createValues, entryOf, entrySet, equals, isEmpty, keyIterator, of, of, of, of, of, of, put, putAll, remove, toString, values, writeReplace
-
-
-
-
Method Detail
-
size
public int size()
-
keySet
public ImmutableSet<K> keySet()
Description copied from class:ImmutableMap
Returns an immutable set of the keys in this map. These keys are in the same order as the parameters used to build this map.- Specified by:
keySet
in interfacejava.util.Map<K,ImmutableSet<V>>
- Overrides:
keySet
in classImmutableMap<K,ImmutableSet<V>>
-
containsKey
public boolean containsKey(@Nullable java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<K,ImmutableSet<V>>
- Overrides:
containsKey
in classImmutableMap<K,ImmutableSet<V>>
-
get
public ImmutableSet<V> get(@Nullable java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<K,ImmutableSet<V>>
- Specified by:
get
in classImmutableMap<K,ImmutableSet<V>>
-
isPartialView
boolean isPartialView()
- Specified by:
isPartialView
in classImmutableMap<K,ImmutableSet<V>>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<K,ImmutableSet<V>>
- Overrides:
hashCode
in classImmutableMap<K,ImmutableSet<V>>
-
isHashCodeFast
boolean isHashCodeFast()
- Overrides:
isHashCodeFast
in classImmutableMap<K,ImmutableSet<V>>
-
entryIterator
UnmodifiableIterator<java.util.Map.Entry<K,ImmutableSet<V>>> entryIterator()
- Specified by:
entryIterator
in classImmutableMap.IteratorBasedImmutableMap<K,ImmutableSet<V>>
-
-