Package com.google.common.collect
Class LinkedHashMultimap.ValueSet
java.lang.Object
java.util.AbstractCollection<V>
java.util.AbstractSet<V>
com.google.common.collect.Sets.ImprovedAbstractSet<V>
com.google.common.collect.LinkedHashMultimap.ValueSet
- All Implemented Interfaces:
LinkedHashMultimap.ValueSetLink<K,
,V> Iterable<V>
,Collection<V>
,Set<V>
- Enclosing class:
LinkedHashMultimap<K,
V>
final class LinkedHashMultimap.ValueSet
extends Sets.ImprovedAbstractSet<V>
implements LinkedHashMultimap.ValueSetLink<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LinkedHashMultimap.ValueSetLink
<K, V> (package private) LinkedHashMultimap.ValueEntry<K,
V>[] private final K
private LinkedHashMultimap.ValueSetLink
<K, V> private int
private int
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAll
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, spliterator, toArray, toArray
-
Field Details
-
key
-
hashTable
LinkedHashMultimap.ValueEntry<K,V>[] hashTable -
size
private int size -
modCount
private int modCount -
firstEntry
-
lastEntry
-
-
Constructor Details
-
ValueSet
ValueSet(K key, int expectedValues)
-
-
Method Details
-
mask
private int mask() -
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>
-
iterator
-
forEach
-
size
public int size()- Specified by:
size
in interfaceCollection<V>
- Specified by:
size
in interfaceSet<V>
- Specified by:
size
in classAbstractCollection<V>
-
contains
- Specified by:
contains
in interfaceCollection<V>
- Specified by:
contains
in interfaceSet<V>
- Overrides:
contains
in classAbstractCollection<V>
-
add
- Specified by:
add
in interfaceCollection<V>
- Specified by:
add
in interfaceSet<V>
- Overrides:
add
in classAbstractCollection<V>
-
rehashIfNecessary
private void rehashIfNecessary() -
remove
- Specified by:
remove
in interfaceCollection<V>
- Specified by:
remove
in interfaceSet<V>
- Overrides:
remove
in classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<V>
- Specified by:
clear
in interfaceSet<V>
- Overrides:
clear
in classAbstractCollection<V>
-