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:
ImmutableMapKeySet
,ImmutableMultiset.EntrySet
,RegularImmutableMap.KeySet
,RegularImmutableMultiset.ElementSet
,RegularImmutableSet
,RegularImmutableTable.CellSet
- 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>
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableCollection
ImmutableCollection.ArrayBasedBuilder<E>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE
-
-
Constructor Summary
Constructors Constructor Description Indexed()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) ImmutableList<E>
createAsList()
(package private) abstract E
get(int index)
UnmodifiableIterator<E>
iterator()
Returns an unmodifiable iterator across the elements in this collection.-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, isHashCodeFast, of, of, of, of, of, of, of, writeReplace
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, contains, copyIntoArray, isPartialView, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Method Detail
-
get
abstract E get(int index)
-
iterator
public UnmodifiableIterator<E> iterator()
Description copied from class:ImmutableCollection
Returns an unmodifiable iterator across the elements in this collection.
-
createAsList
ImmutableList<E> createAsList()
- Overrides:
createAsList
in classImmutableSet<E>
-
-