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 Kprivate LinkedHashMultimap.ValueSetLink<K, V> private intprivate int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAllMethods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
getPredecessorInValueSetin interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
getSuccessorInValueSet
- Specified by:
getSuccessorInValueSetin interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
setPredecessorInValueSet
- Specified by:
setPredecessorInValueSetin interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
setSuccessorInValueSet
- Specified by:
setSuccessorInValueSetin interfaceLinkedHashMultimap.ValueSetLink<K,V>
-
iterator
-
forEach
-
size
public int size()- Specified by:
sizein interfaceCollection<V>- Specified by:
sizein interfaceSet<V>- Specified by:
sizein classAbstractCollection<V>
-
contains
- Specified by:
containsin interfaceCollection<V>- Specified by:
containsin interfaceSet<V>- Overrides:
containsin classAbstractCollection<V>
-
add
- Specified by:
addin interfaceCollection<V>- Specified by:
addin interfaceSet<V>- Overrides:
addin classAbstractCollection<V>
-
rehashIfNecessary
private void rehashIfNecessary() -
remove
- Specified by:
removein interfaceCollection<V>- Specified by:
removein interfaceSet<V>- Overrides:
removein classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<V>- Specified by:
clearin interfaceSet<V>- Overrides:
clearin classAbstractCollection<V>
-