Package com.google.common.collect
Class ImmutableMultiset.EntrySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableSet<E>
-
- com.google.common.collect.IndexedImmutableSet<Multiset.Entry<E>>
-
- com.google.common.collect.ImmutableMultiset.EntrySet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<Multiset.Entry<E>>,java.util.Collection<Multiset.Entry<E>>,java.util.Set<Multiset.Entry<E>>
- Enclosing class:
- ImmutableMultiset<E>
private final class ImmutableMultiset.EntrySet extends IndexedImmutableSet<Multiset.Entry<E>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class com.google.common.collect.ImmutableSet
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object o)(package private) Multiset.Entry<E>get(int index)inthashCode()(package private) booleanisPartialView()Returnstrueif this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.intsize()(package private) java.lang.ObjectwriteReplace()-
Methods inherited from class com.google.common.collect.IndexedImmutableSet
copyIntoArray, createAsList, forEach, iterator, spliterator
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashFloodingDetected, isHashCodeFast, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isPartialView
boolean isPartialView()
Description copied from class:ImmutableCollectionReturnstrueif this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods. This is generally used to determine whethercopyOfimplementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialViewin classImmutableCollection<Multiset.Entry<E>>
-
get
Multiset.Entry<E> get(int index)
- Specified by:
getin classIndexedImmutableSet<Multiset.Entry<E>>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<Multiset.Entry<E>>- Specified by:
sizein interfacejava.util.Set<Multiset.Entry<E>>- Specified by:
sizein classjava.util.AbstractCollection<Multiset.Entry<E>>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<Multiset.Entry<E>>- Specified by:
containsin interfacejava.util.Set<Multiset.Entry<E>>- Specified by:
containsin classImmutableCollection<Multiset.Entry<E>>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection<Multiset.Entry<E>>- Specified by:
hashCodein interfacejava.util.Set<Multiset.Entry<E>>- Overrides:
hashCodein classImmutableSet<Multiset.Entry<E>>
-
writeReplace
@GwtIncompatible java.lang.Object writeReplace()
- Overrides:
writeReplacein classImmutableSet<Multiset.Entry<E>>
-
-