private final class ImmutableMultiset.EntrySet extends ImmutableSet.Indexed<Multiset.Entry<E>>
ImmutableSet.Builder<E>, ImmutableSet.Indexed<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) 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() |
createAsList, iterator
asList, builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, isHashCodeFast, of, of, of, of, of, of, of
add, addAll, 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>>
Multiset.Entry<E> get(int index)
get
in class ImmutableSet.Indexed<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>>