final class JdkBackedImmutableSet<E> extends IndexedImmutableSet<E>
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<?> |
delegate |
private ImmutableList<E> |
delegateList |
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS| Constructor and Description |
|---|
JdkBackedImmutableSet(java.util.Set<?> delegate,
ImmutableList<E> delegateList) |
| 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() |
copyIntoArray, createAsList, forEach, iterator, spliteratorasListbuilder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, isHashCodeFast, of, of, of, of, of, of, of, toImmutableSet, writeReplaceadd, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate final java.util.Set<?> delegate
private final ImmutableList<E> delegateList
JdkBackedImmutableSet(java.util.Set<?> delegate,
ImmutableList<E> delegateList)
E get(int index)
get in class IndexedImmutableSet<E>public boolean contains(@CheckForNull
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()
ImmutableCollectiontrue 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>