private final class RegularImmutableMultiset.ElementSet extends ImmutableSet.Indexed<E>
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
ImmutableCollection.ArrayBasedBuilder<E>
MAX_TABLE_SIZE
Modifier | Constructor and Description |
---|---|
private |
ElementSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object object) |
(package private) E |
get(int index) |
(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() |
createAsList, iterator
asList, builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, isHashCodeFast, of, of, of, of, of, of, of, writeReplace
add, addAll, clear, copyIntoArray, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
E get(int index)
get
in class ImmutableSet.Indexed<E>
public boolean contains(@Nullable java.lang.Object object)
contains
in interface java.util.Collection<E>
contains
in interface java.util.Set<E>
contains
in class ImmutableCollection<E>
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<E>