| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractIterator<T>
This class provides a skeletal implementation of the
Iterator interface, to make this interface easier to implement for certain types of data sources.
|
class |
AbstractSequentialIterator<T>
This class provides a skeletal implementation of the
Iterator interface for sequences whose next element can always be derived from the previous element.
|
class |
UnmodifiableListIterator<E>
A list iterator that does not support
remove(),
UnmodifiableListIterator, or
UnmodifiableListIterator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract UnmodifiableIterator |
ImmutableSortedSet.descendingIterator()
|
static <T> UnmodifiableIterator |
Iterators.emptyIterator()
Deprecated.
Use
ImmutableSet.<T>of().iterator() instead; or for Java 7 or later, Collections. This method is scheduled for removal in May 2016.
|
static <T> UnmodifiableIterator |
Iterators.filter(Iterator
Returns all instances of class
type in
unfiltered.
|
static <T> UnmodifiableIterator |
Iterators.filter(Iterator
Returns the elements of
unfiltered that satisfy a predicate.
|
static <T> UnmodifiableIterator |
Iterators.forArray(T... array)
Returns an iterator containing the elements of
array in order.
|
static <T> UnmodifiableIterator |
Iterators.forEnumeration(Enumeration
Adapts an
Enumeration to the
Iterator interface.
|
UnmodifiableIterator |
ImmutableList.iterator()
|
abstract UnmodifiableIterator |
ImmutableSortedSet.iterator()
|
UnmodifiableIterator |
ImmutableMultiset.iterator()
|
abstract UnmodifiableIterator |
ImmutableCollection.iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
abstract UnmodifiableIterator |
ImmutableSet.iterator()
|
static <T> UnmodifiableIterator |
Iterators.mergeSorted(Iterable
Returns an iterator over the merged contents of all given
iterators, traversing every element of the input iterators.
|
static <T> UnmodifiableIterator |
Iterators.paddedPartition(Iterator
Divides an iterator into unmodifiable sublists of the given size, padding the final iterator with null values if necessary.
|
static <T> UnmodifiableIterator |
Iterators.partition(Iterator
Divides an iterator into unmodifiable sublists of the given size (the final list may be smaller).
|
static <T> UnmodifiableIterator |
Iterators.singletonIterator(T value)
Returns an iterator containing only
value.
|
static <T> UnmodifiableIterator |
Iterators.unmodifiableIterator(Iterator
Returns an unmodifiable view of
iterator.
|
static <T> UnmodifiableIterator |
Iterators.unmodifiableIterator(UnmodifiableIterator
Deprecated.
no need to use this
|
| Modifier and Type | Method and Description |
|---|---|
static <T> UnmodifiableIterator |
Iterators.unmodifiableIterator(UnmodifiableIterator
Deprecated.
no need to use this
|