Package com.google.common.collect
Class LinkedHashMultimap.ValueEntry<K,V>
java.lang.Object
com.google.common.collect.AbstractMapEntry<K,V>
com.google.common.collect.ImmutableEntry<K,V>
com.google.common.collect.LinkedHashMultimap.ValueEntry<K,V>
- All Implemented Interfaces:
LinkedHashMultimap.ValueSetLink<K,
,V> Serializable
,Map.Entry<K,
V>
- Enclosing class:
LinkedHashMultimap<K,
V>
static final class LinkedHashMultimap.ValueEntry<K,V>
extends ImmutableEntry<K,V>
implements LinkedHashMultimap.ValueSetLink<K,V>
LinkedHashMultimap entries are in no less than three coexisting linked lists: a bucket in the
hash table for a
Set<V>
associated with a key, the linked list of insertion-ordered
entries in that Set<V>
, and the linked list of entries in the LinkedHashMultimap as a
whole.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) LinkedHashMultimap.ValueEntry
<K, V> private LinkedHashMultimap.ValueEntry
<K, V> private LinkedHashMultimap.ValueSetLink
<K, V> (package private) final int
private LinkedHashMultimap.ValueEntry
<K, V> private LinkedHashMultimap.ValueSetLink
<K, V> Fields inherited from class com.google.common.collect.ImmutableEntry
key, value
-
Constructor Summary
ConstructorsConstructorDescriptionValueEntry
(K key, V value, int smearedValueHash, LinkedHashMultimap.ValueEntry<K, V> nextInValueBucket) -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
matchesValue
(Object v, int smearedVHash) (package private) static <K,
V> LinkedHashMultimap.ValueEntry <K, V> void
setPredecessorInMultimap
(LinkedHashMultimap.ValueEntry<K, V> multimapPredecessor) void
void
setSuccessorInMultimap
(LinkedHashMultimap.ValueEntry<K, V> multimapSuccessor) void
Methods inherited from class com.google.common.collect.ImmutableEntry
getKey, getValue, setValue
Methods inherited from class com.google.common.collect.AbstractMapEntry
equals, hashCode, toString
-
Field Details
-
smearedValueHash
final int smearedValueHash -
nextInValueBucket
-
predecessorInValueSet
-
successorInValueSet
-
predecessorInMultimap
-
successorInMultimap
-
-
Constructor Details
-
ValueEntry
ValueEntry(K key, V value, int smearedValueHash, @CheckForNull LinkedHashMultimap.ValueEntry<K, V> nextInValueBucket)
-
-
Method Details
-
newHeader
-
matchesValue
-
getPredecessorInValueSet
- Specified by:
getPredecessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,
V>
-
getSuccessorInValueSet
- Specified by:
getSuccessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,
V>
-
setPredecessorInValueSet
- Specified by:
setPredecessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,
V>
-
setSuccessorInValueSet
- Specified by:
setSuccessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,
V>
-
getPredecessorInMultimap
-
getSuccessorInMultimap
-
setSuccessorInMultimap
-
setPredecessorInMultimap
-