abstract static class ImmutableSet.Indexed<E> extends ImmutableSet.CachingAsList<E>
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
Constructor and Description |
---|
Indexed() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
copyIntoArray(java.lang.Object[] dst,
int offset)
Copies the contents of this immutable collection into the specified array at the specified
offset.
|
(package private) ImmutableList<E> |
createAsList() |
void |
forEach(java.util.function.Consumer<? super E> consumer) |
(package private) abstract E |
get(int index) |
UnmodifiableIterator<E> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
java.util.Spliterator<E> |
spliterator() |
asList
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, isHashCodeFast, of, of, of, of, of, of, of, toImmutableSet, writeReplace
add, addAll, clear, contains, internalArray, internalArrayEnd, internalArrayStart, isPartialView, remove, removeAll, removeIf, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
abstract E get(int index)
public UnmodifiableIterator<E> iterator()
ImmutableCollection
public java.util.Spliterator<E> spliterator()
spliterator
in interface java.lang.Iterable<E>
spliterator
in interface java.util.Collection<E>
spliterator
in interface java.util.Set<E>
spliterator
in class ImmutableCollection<E>
public void forEach(java.util.function.Consumer<? super E> consumer)
int copyIntoArray(java.lang.Object[] dst, int offset)
ImmutableCollection
offset + size()
.copyIntoArray
in class ImmutableCollection<E>
ImmutableList<E> createAsList()
createAsList
in class ImmutableSet.CachingAsList<E>