abstract static class ImmutableSet.CachingAsList<E> extends ImmutableSet<E>
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>| Modifier and Type | Field and Description |
|---|---|
private ImmutableList<E> |
asList |
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS| Constructor and Description |
|---|
CachingAsList() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<E> |
asList()
Returns an
ImmutableList containing the same elements, in the same order, as this
collection. |
(package private) ImmutableList<E> |
createAsList() |
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, isHashCodeFast, iterator, of, of, of, of, of, of, of, toImmutableSet, writeReplaceadd, addAll, clear, contains, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, isPartialView, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, wait@CheckForNull private transient ImmutableList<E> asList
public ImmutableList<E> asList()
ImmutableCollectionImmutableList containing the same elements, in the same order, as this
collection.
Performance note: in most cases this method can return quickly without actually copying anything. The exact circumstances under which the copy is performed are undefined and subject to change.
asList in class ImmutableCollection<E>ImmutableList<E> createAsList()