Package com.google.common.collect
Class ImmutableSet.Indexed<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableSet<E>
-
- com.google.common.collect.ImmutableSet.Indexed<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.Set<E>
- Direct Known Subclasses:
ImmutableMultiset.ElementSet
- Enclosing class:
- ImmutableSet<E>
abstract static class ImmutableSet.Indexed<E> extends ImmutableSet<E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.ImmutableSet
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
-
Constructor Summary
Constructors Constructor Description Indexed()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) intcopyIntoArray(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()voidforEach(java.util.function.Consumer<? super E> consumer)(package private) abstract Eget(int index)UnmodifiableIterator<E>iterator()Returns an unmodifiable iterator across the elements in this collection.java.util.Spliterator<E>spliterator()-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, hashFloodingDetected, isHashCodeFast, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet, writeReplace
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, contains, internalArray, internalArrayEnd, internalArrayStart, isPartialView, remove, removeAll, removeIf, retainAll, toArray, toArray
-
-
-
-
Method Detail
-
get
abstract E get(int index)
-
iterator
public UnmodifiableIterator<E> iterator()
Description copied from class:ImmutableCollectionReturns an unmodifiable iterator across the elements in this collection.
-
spliterator
public java.util.Spliterator<E> spliterator()
- Specified by:
spliteratorin interfacejava.util.Collection<E>- Specified by:
spliteratorin interfacejava.lang.Iterable<E>- Specified by:
spliteratorin interfacejava.util.Set<E>- Overrides:
spliteratorin classImmutableCollection<E>
-
forEach
public void forEach(java.util.function.Consumer<? super E> consumer)
-
copyIntoArray
int copyIntoArray(java.lang.Object[] dst, int offset)Description copied from class:ImmutableCollectionCopies the contents of this immutable collection into the specified array at the specified offset. Returnsoffset + size().- Overrides:
copyIntoArrayin classImmutableCollection<E>
-
createAsList
ImmutableList<E> createAsList()
- Overrides:
createAsListin classImmutableSet<E>
-
-