Uses of Class
com.google.common.collect.UnmodifiableIterator
Packages that use UnmodifiableIterator
Package
Description
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
An API for representing graph (node and edge) data.
-
Uses of UnmodifiableIterator in com.google.common.collect
Subclasses of UnmodifiableIterator in com.google.common.collectModifier and TypeClassDescriptionclass
AbstractIterator<T extends @Nullable Object>
This class provides a skeletal implementation of theIterator
interface, to make this interface easier to implement for certain types of data sources.class
This class provides a skeletal implementation of theIterator
interface for sequences whose next element can always be derived from the previous element.class
UnmodifiableListIterator<E extends @Nullable Object>
A list iterator that does not supportremove()
,UnmodifiableListIterator.add(E)
, orUnmodifiableListIterator.set(E)
.Methods in com.google.common.collect that return UnmodifiableIteratorModifier and TypeMethodDescriptionabstract UnmodifiableIterator<E>
ImmutableSortedSet.descendingIterator()
static <T> UnmodifiableIterator<T>
Returns a view ofunfiltered
containing all elements that are of the typedesiredType
.static <T extends @Nullable Object>
UnmodifiableIterator<T>Returns a view ofunfiltered
containing all elements that satisfy the input predicateretainIfTrue
.static <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.forArray
(T... array) Returns an iterator containing the elements ofarray
in order.static <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.forEnumeration
(Enumeration<T> enumeration) Adapts anEnumeration
to theIterator
interface.abstract UnmodifiableIterator<E>
ImmutableCollection.iterator()
Returns an unmodifiable iterator across the elements in this collection.ImmutableList.iterator()
ImmutableMultiset.iterator()
abstract UnmodifiableIterator<E>
ImmutableSet.iterator()
abstract UnmodifiableIterator<E>
ImmutableSortedSet.iterator()
abstract UnmodifiableIterator<E>
Sets.SetView.iterator()
Scope the return type toUnmodifiableIterator
to ensure this is an unmodifiable view.static <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.mergeSorted
(Iterable<? extends Iterator<? extends T>> iterators, Comparator<? super T> comparator) Returns an iterator over the merged contents of all giveniterators
, traversing every element of the input iterators.static <T extends @Nullable Object>
UnmodifiableIterator<List<@Nullable 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 extends @Nullable Object>
UnmodifiableIterator<List<T>>Divides an iterator into unmodifiable sublists of the given size (the final list may be smaller).static <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.singletonIterator
(T value) Returns an iterator containing onlyvalue
.static <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.unmodifiableIterator
(UnmodifiableIterator<T> iterator) Deprecated.no need to use thisstatic <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.unmodifiableIterator
(Iterator<? extends T> iterator) Returns an unmodifiable view ofiterator
.Methods in com.google.common.collect with parameters of type UnmodifiableIteratorModifier and TypeMethodDescriptionstatic <T extends @Nullable Object>
UnmodifiableIterator<T>Iterators.unmodifiableIterator
(UnmodifiableIterator<T> iterator) Deprecated.no need to use this -
Uses of UnmodifiableIterator in com.google.common.graph
Methods in com.google.common.graph that return UnmodifiableIteratorModifier and TypeMethodDescriptionfinal UnmodifiableIterator<N>
EndpointPair.iterator()
Iterates in the orderEndpointPair.nodeU()
,EndpointPair.nodeV()
.