Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
com.google.common.graph |
An API for representing graph (node and edge) data.
|
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.add(E) , or
UnmodifiableListIterator.set(E) . |
Modifier and Type | Method and Description |
---|---|
abstract UnmodifiableIterator<E> |
ImmutableSortedSet.descendingIterator() |
static <T> UnmodifiableIterator<T> |
Iterators.filter(Iterator<?> unfiltered,
Class<T> desiredType)
Returns a view of
unfiltered containing all elements that are of
the type desiredType . |
static <T> UnmodifiableIterator<T> |
Iterators.filter(Iterator<T> unfiltered,
Predicate<? super T> retainIfTrue)
Returns a view of
unfiltered containing all elements that satisfy
the input predicate retainIfTrue . |
static <T> UnmodifiableIterator<T> |
Iterators.forArray(T... array)
Returns an iterator containing the elements of
array in order. |
static <T> UnmodifiableIterator<T> |
Iterators.forEnumeration(Enumeration<T> enumeration)
Adapts an
Enumeration to the Iterator interface. |
abstract UnmodifiableIterator<E> |
ImmutableSortedSet.iterator() |
abstract UnmodifiableIterator<E> |
ImmutableCollection.iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
abstract UnmodifiableIterator<E> |
Sets.SetView.iterator()
Scope the return type to
UnmodifiableIterator to ensure this is an unmodifiable view. |
abstract UnmodifiableIterator<E> |
ImmutableSet.iterator() |
UnmodifiableIterator<E> |
ImmutableList.iterator() |
UnmodifiableIterator<E> |
ImmutableMultiset.iterator() |
static <T> UnmodifiableIterator<T> |
Iterators.mergeSorted(Iterable<? extends Iterator<? extends T>> iterators,
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<List<T>> |
Iterators.paddedPartition(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<List<T>> |
Iterators.partition(Iterator<T> iterator,
int size)
Divides an iterator into unmodifiable sublists of the given size (the final
list may be smaller).
|
static <T> UnmodifiableIterator<T> |
Iterators.singletonIterator(T value)
Returns an iterator containing only
value . |
static <T> UnmodifiableIterator<T> |
Iterators.unmodifiableIterator(Iterator<? extends T> iterator)
Returns an unmodifiable view of
iterator . |
static <T> UnmodifiableIterator<T> |
Iterators.unmodifiableIterator(UnmodifiableIterator<T> iterator)
Deprecated.
no need to use this
|
Modifier and Type | Method and Description |
---|---|
static <T> UnmodifiableIterator<T> |
Iterators.unmodifiableIterator(UnmodifiableIterator<T> iterator)
Deprecated.
no need to use this
|
Modifier and Type | Method and Description |
---|---|
UnmodifiableIterator<N> |
EndpointPair.iterator()
Iterates in the order
EndpointPair.nodeU() , EndpointPair.nodeV() . |
Copyright © 2010-2017. All Rights Reserved.