abstract class IndexedImmutableSet<E> extends ImmutableSet<E>
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
Constructor and Description |
---|
IndexedImmutableSet() |
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, hashFloodingDetected, isHashCodeFast, of, of, of, of, of, of, of, rebuildHashTable, 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<E>