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>
,java.io.Serializable
,java.util.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 aSet<V>
associated with a key, the linked list of insertion-ordered entries in thatSet<V>
, and the linked list of entries in the LinkedHashMultimap as a whole.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LinkedHashMultimap.ValueEntry<K,V>
nextInValueBucket
(package private) LinkedHashMultimap.ValueEntry<K,V>
predecessorInMultimap
(package private) LinkedHashMultimap.ValueSetLink<K,V>
predecessorInValueSet
(package private) int
smearedValueHash
(package private) LinkedHashMultimap.ValueEntry<K,V>
successorInMultimap
(package private) LinkedHashMultimap.ValueSetLink<K,V>
successorInValueSet
-
Fields inherited from class com.google.common.collect.ImmutableEntry
key, value
-
-
Constructor Summary
Constructors Constructor Description ValueEntry(K key, V value, int smearedValueHash, LinkedHashMultimap.ValueEntry<K,V> nextInValueBucket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkedHashMultimap.ValueEntry<K,V>
getPredecessorInMultimap()
LinkedHashMultimap.ValueSetLink<K,V>
getPredecessorInValueSet()
LinkedHashMultimap.ValueEntry<K,V>
getSuccessorInMultimap()
LinkedHashMultimap.ValueSetLink<K,V>
getSuccessorInValueSet()
(package private) boolean
matchesValue(java.lang.Object v, int smearedVHash)
void
setPredecessorInMultimap(LinkedHashMultimap.ValueEntry<K,V> multimapPredecessor)
void
setPredecessorInValueSet(LinkedHashMultimap.ValueSetLink<K,V> entry)
void
setSuccessorInMultimap(LinkedHashMultimap.ValueEntry<K,V> multimapSuccessor)
void
setSuccessorInValueSet(LinkedHashMultimap.ValueSetLink<K,V> entry)
-
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 Detail
-
smearedValueHash
final int smearedValueHash
-
nextInValueBucket
LinkedHashMultimap.ValueEntry<K,V> nextInValueBucket
-
predecessorInValueSet
LinkedHashMultimap.ValueSetLink<K,V> predecessorInValueSet
-
successorInValueSet
LinkedHashMultimap.ValueSetLink<K,V> successorInValueSet
-
predecessorInMultimap
LinkedHashMultimap.ValueEntry<K,V> predecessorInMultimap
-
successorInMultimap
LinkedHashMultimap.ValueEntry<K,V> successorInMultimap
-
-
Constructor Detail
-
ValueEntry
ValueEntry(K key, V value, int smearedValueHash, LinkedHashMultimap.ValueEntry<K,V> nextInValueBucket)
-
-
Method Detail
-
matchesValue
boolean matchesValue(java.lang.Object v, int smearedVHash)
-
getPredecessorInValueSet
public LinkedHashMultimap.ValueSetLink<K,V> getPredecessorInValueSet()
- Specified by:
getPredecessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
getSuccessorInValueSet
public LinkedHashMultimap.ValueSetLink<K,V> getSuccessorInValueSet()
- Specified by:
getSuccessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
setPredecessorInValueSet
public void setPredecessorInValueSet(LinkedHashMultimap.ValueSetLink<K,V> entry)
- Specified by:
setPredecessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
setSuccessorInValueSet
public void setSuccessorInValueSet(LinkedHashMultimap.ValueSetLink<K,V> entry)
- Specified by:
setSuccessorInValueSet
in interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
getPredecessorInMultimap
public LinkedHashMultimap.ValueEntry<K,V> getPredecessorInMultimap()
-
getSuccessorInMultimap
public LinkedHashMultimap.ValueEntry<K,V> getSuccessorInMultimap()
-
setSuccessorInMultimap
public void setSuccessorInMultimap(LinkedHashMultimap.ValueEntry<K,V> multimapSuccessor)
-
setPredecessorInMultimap
public void setPredecessorInMultimap(LinkedHashMultimap.ValueEntry<K,V> multimapPredecessor)
-
-