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 |
---|---|
(package private) class |
AbstractIndexedListIterator<E>
This class provides a skeletal implementation of the
ListIterator
interface across a fixed number of elements that may be retrieved by
position. |
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. |
private class |
BinaryTreeTraverser.InOrderIterator |
private class |
BinaryTreeTraverser.PostOrderIterator |
private class |
BinaryTreeTraverser.PreOrderIterator |
private static class |
Collections2.OrderedPermutationIterator<E> |
private static class |
Collections2.PermutationIterator<E> |
private class |
ImmutableMultimap.Itr<T> |
private static class |
Iterables.ConsumingQueueIterator<T> |
private static class |
Iterators.MergingIterator<T>
An iterator that performs a lazy N-way merge, calculating the next value
each time the iterator is polled.
|
private class |
StandardTable.Column.EntrySetIterator |
private class |
StandardTable.ColumnKeyIterator |
private class |
TreeTraverser.BreadthFirstIterator |
private class |
TreeTraverser.PostOrderIterator |
private class |
TreeTraverser.PreOrderIterator |
class |
UnmodifiableListIterator<E>
A list iterator that does not support
remove() , UnmodifiableListIterator.add(E) , or
UnmodifiableListIterator.set(E) . |
Modifier and Type | Method and Description |
---|---|
(package private) UnmodifiableIterator<Table.Cell<R,C,V>> |
ImmutableTable.cellIterator() |
UnmodifiableIterator<E> |
RegularImmutableSortedSet.descendingIterator() |
UnmodifiableIterator<C> |
RegularContiguousSet.descendingIterator() |
abstract UnmodifiableIterator<E> |
ImmutableSortedSet.descendingIterator() |
UnmodifiableIterator<C> |
ImmutableRangeSet.AsSet.descendingIterator() |
UnmodifiableIterator<E> |
EmptyImmutableSortedSet.descendingIterator() |
UnmodifiableIterator<C> |
EmptyContiguousSet.descendingIterator() |
UnmodifiableIterator<E> |
DescendingImmutableSortedSet.descendingIterator() |
static <T> UnmodifiableIterator<T> |
Iterators.emptyIterator()
Deprecated.
Use
ImmutableSet.<T>of().iterator() instead; or for
Java 7 or later, Collections.emptyIterator() . This method is
scheduled for removal in May 2016. |
(package private) UnmodifiableIterator<java.util.Map.Entry<K,V>> |
ImmutableMultimap.entryIterator() |
static <T> UnmodifiableIterator<T> |
Iterators.filter(java.util.Iterator<?> unfiltered,
java.lang.Class<T> type)
Returns all instances of class
type in unfiltered . |
static <T> UnmodifiableIterator<T> |
Iterators.filter(java.util.Iterator<T> unfiltered,
Predicate<? super T> predicate)
Returns the elements of
unfiltered that satisfy a predicate. |
static <T> UnmodifiableIterator<T> |
Iterators.forArray(T... array)
Returns an iterator containing the elements of
array in order. |
static <T> UnmodifiableIterator<T> |
Iterators.forEnumeration(java.util.Enumeration<T> enumeration)
Adapts an
Enumeration to the Iterator interface. |
UnmodifiableIterator<E> |
SingletonImmutableSet.iterator() |
UnmodifiableIterator<E> |
SingletonImmutableList.iterator() |
UnmodifiableIterator<Table.Cell<R,C,V>> |
RegularImmutableTable.CellSet.iterator() |
UnmodifiableIterator<E> |
RegularImmutableSortedSet.iterator() |
UnmodifiableIterator<java.util.Map.Entry<K,V>> |
RegularImmutableSortedMap.EntrySet.iterator() |
UnmodifiableIterator<E> |
RegularImmutableSet.iterator() |
UnmodifiableIterator<java.util.Map.Entry<K,V>> |
RegularImmutableMap.EntrySet.iterator() |
UnmodifiableIterator<java.util.Map.Entry<V,K>> |
RegularImmutableBiMap.Inverse.InverseEntrySet.iterator() |
UnmodifiableIterator<C> |
RegularContiguousSet.iterator() |
UnmodifiableIterator<E> |
Multisets.FilteredMultiset.iterator() |
abstract UnmodifiableIterator<E> |
ImmutableSortedSet.iterator() |
UnmodifiableIterator<java.util.Map.Entry<K,V>> |
ImmutableSetMultimap.EntrySet.iterator() |
abstract UnmodifiableIterator<E> |
ImmutableSet.iterator() |
UnmodifiableIterator<C> |
ImmutableRangeSet.AsSet.iterator() |
UnmodifiableIterator<E> |
ImmutableMultiset.iterator() |
UnmodifiableIterator<Multiset.Entry<E>> |
ImmutableMultiset.EntrySet.iterator() |
UnmodifiableIterator<java.util.Map.Entry<K,V>> |
ImmutableMultimap.EntryCollection.iterator() |
UnmodifiableIterator<V> |
ImmutableMultimap.Values.iterator() |
UnmodifiableIterator<V> |
ImmutableMapValues.iterator() |
UnmodifiableIterator<K> |
ImmutableMapKeySet.iterator() |
UnmodifiableIterator<E> |
ImmutableList.iterator() |
UnmodifiableIterator<E> |
ImmutableEnumSet.iterator() |
abstract UnmodifiableIterator<E> |
ImmutableCollection.iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
UnmodifiableIterator<E> |
EmptyImmutableSortedSet.iterator() |
UnmodifiableIterator<E> |
EmptyImmutableSortedMultiset.iterator() |
UnmodifiableIterator<java.lang.Object> |
EmptyImmutableSet.iterator() |
UnmodifiableIterator<C> |
EmptyContiguousSet.iterator() |
UnmodifiableIterator<E> |
DescendingImmutableSortedSet.iterator() |
static <T> UnmodifiableIterator<T> |
Iterators.mergeSorted(java.lang.Iterable<? extends java.util.Iterator<? extends T>> iterators,
java.util.Comparator<? super T> comparator)
Returns an iterator over the merged contents of all given
iterators , traversing every element of the input iterators. |
static <T> UnmodifiableIterator<java.util.List<T>> |
Iterators.paddedPartition(java.util.Iterator<T> iterator,
int size)
Divides an iterator into unmodifiable sublists of the given size, padding
the final iterator with null values if necessary.
|
static <T> UnmodifiableIterator<java.util.List<T>> |
Iterators.partition(java.util.Iterator<T> iterator,
int size)
Divides an iterator into unmodifiable sublists of the given size (the final
list may be smaller).
|
private static <T> UnmodifiableIterator<java.util.List<T>> |
Iterators.partitionImpl(java.util.Iterator<T> iterator,
int size,
boolean pad) |
(package private) UnmodifiableIterator<T> |
TreeTraverser.postOrderIterator(T root) |
(package private) UnmodifiableIterator<T> |
BinaryTreeTraverser.postOrderIterator(T root) |
(package private) UnmodifiableIterator<T> |
TreeTraverser.preOrderIterator(T root) |
(package private) UnmodifiableIterator<T> |
BinaryTreeTraverser.preOrderIterator(T root) |
static <T> UnmodifiableIterator<T> |
Iterators.singletonIterator(T value)
Returns an iterator containing only
value . |
static <T> UnmodifiableIterator<T> |
Iterators.unmodifiableIterator(java.util.Iterator<T> iterator)
Returns an unmodifiable view of
iterator . |
static <T> UnmodifiableIterator<T> |
Iterators.unmodifiableIterator(UnmodifiableIterator<T> iterator)
Deprecated.
no need to use this
|
(package private) UnmodifiableIterator<V> |
ImmutableMultimap.valueIterator() |
(package private) static <K,V> UnmodifiableIterator<V> |
Maps.valueIterator(UnmodifiableIterator<java.util.Map.Entry<K,V>> entryIterator) |
Modifier and Type | Method and Description |
---|---|
static <T> UnmodifiableIterator<T> |
Iterators.unmodifiableIterator(UnmodifiableIterator<T> iterator)
Deprecated.
no need to use this
|
(package private) static <K,V> UnmodifiableIterator<V> |
Maps.valueIterator(UnmodifiableIterator<java.util.Map.Entry<K,V>> entryIterator) |