private final class ImmutableMultiset.EntrySet extends ImmutableSet<Multiset.Entry<E>>
ImmutableSet.Builder<E>
ImmutableCollection.ArrayBasedBuilder<E>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
MAX_TABLE_SIZE
Modifier | Constructor and Description |
---|---|
private |
EntrySet() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object o) |
(package private) ImmutableList<Multiset.Entry<E>> |
createAsList() |
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. |
UnmodifiableIterator<Multiset.Entry<E>> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
int |
size() |
(package private) java.lang.Object |
writeReplace() |
builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, isHashCodeFast, of, of, of, of, of, of, of
add, addAll, asList, clear, copyIntoArray, remove, removeAll, 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>>
public UnmodifiableIterator<Multiset.Entry<E>> iterator()
ImmutableCollection
iterator
in interface java.lang.Iterable<Multiset.Entry<E>>
iterator
in interface java.util.Collection<Multiset.Entry<E>>
iterator
in interface java.util.Set<Multiset.Entry<E>>
iterator
in class ImmutableSet<Multiset.Entry<E>>
ImmutableList<Multiset.Entry<E>> createAsList()
createAsList
in class ImmutableCollection<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(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>>