private final class ImmutableMultiset.EntrySet extends IndexedImmutableSet<Multiset.Entry<E>>
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
Modifier | Constructor and Description |
---|---|
private |
EntrySet() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object o) |
(package private) Multiset.Entry<E> |
get(int index) |
int |
hashCode() |
(package private) boolean |
isPartialView()
Returns
true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. |
int |
size() |
(package private) java.lang.Object |
writeReplace() |
copyIntoArray, createAsList, forEach, iterator, spliterator
asList
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, isHashCodeFast, of, of, of, of, of, of, of, toImmutableSet
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
boolean isPartialView()
ImmutableCollection
true
if 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 whether copyOf
implementations should make an explicit copy to avoid
memory leaks.isPartialView
in class ImmutableCollection<Multiset.Entry<E>>
Multiset.Entry<E> get(int index)
get
in class IndexedImmutableSet<Multiset.Entry<E>>
public int size()
size
in interface java.util.Collection<Multiset.Entry<E>>
size
in interface java.util.Set<Multiset.Entry<E>>
size
in class java.util.AbstractCollection<Multiset.Entry<E>>
public boolean contains(@CheckForNull java.lang.Object o)
contains
in interface java.util.Collection<Multiset.Entry<E>>
contains
in interface java.util.Set<Multiset.Entry<E>>
contains
in class ImmutableCollection<Multiset.Entry<E>>
public int hashCode()
hashCode
in interface java.util.Collection<Multiset.Entry<E>>
hashCode
in interface java.util.Set<Multiset.Entry<E>>
hashCode
in class ImmutableSet<Multiset.Entry<E>>
java.lang.Object writeReplace()
writeReplace
in class ImmutableSet<Multiset.Entry<E>>