Package org.apache.commons.collections.iterators
This package contains implementations of the
Iterator
interface.
You may also consider using
IteratorUtils
,
which is a single class that uses static methods to construct instances
of the classes in this package.
-
Class Summary Class Description AbstractIteratorDecorator Provides basic behaviour for decorating an iterator with extra functionality.AbstractListIteratorDecorator Provides basic behaviour for decorating a list iterator with extra functionality.AbstractMapIteratorDecorator Provides basic behaviour for decorating a map iterator with extra functionality.AbstractOrderedMapIteratorDecorator Provides basic behaviour for decorating an ordered map iterator with extra functionality.ArrayIterator Implements anIterator
over any array.ArrayListIterator Implements aListIterator
over an array.CollatingIterator Provides an ordered iteration over the elements contained in a collection of ordered Iterators.EmptyIterator Provides an implementation of an empty iterator.EmptyListIterator Provides an implementation of an empty list iterator.EmptyMapIterator Provides an implementation of an empty map iterator.EmptyOrderedIterator Provides an implementation of an empty ordered iterator.EmptyOrderedMapIterator Provides an implementation of an empty ordered map iterator.EntrySetMapIterator Implements aMapIterator
using a Map entrySet.EnumerationIterator Adapter to makeEnumeration
instances appear to beIterator
instances.FilterIterator Decorates anotherIterator
using a predicate to filter elements.FilterListIterator Decorates anotherListIterator
using a predicate to filter elements.IteratorChain An IteratorChain is an Iterator that wraps a number of Iterators.IteratorEnumeration Adapter to make anIterator
instance appear to be anEnumeration
instance.ListIteratorWrapper Converts an iterator into a list iterator by caching the returned entries.LoopingIterator An Iterator that restarts when it reaches the end.LoopingListIterator A ListIterator that restarts when it reaches the end or when it reaches the beginning.ObjectArrayIterator AnIterator
over an array of objects.ObjectArrayListIterator Implements aListIterator
over an array of objects.ObjectGraphIterator An Iterator that can traverse multiple iterators down an object graph.ProxyIterator Deprecated. Use AbstractIteratorDecorator.ProxyListIterator Deprecated. Use AbstractListIteratorDecorator.ReverseListIterator Iterates backwards through a List, starting with the last element and continuing to the first.SingletonIterator SingletonIterator
is anIterator
over a single object instance.SingletonListIterator SingletonIterator
is anListIterator
over a single object instance.TransformIterator Decorates an iterator such that each element returned is transformed.UniqueFilterIterator A FilterIterator which only returns "unique" Objects.UnmodifiableIterator Decorates an iterator such that it cannot be modified.UnmodifiableListIterator Decorates a list iterator such that it cannot be modified.UnmodifiableMapIterator Decorates a map iterator such that it cannot be modified.UnmodifiableOrderedMapIterator Decorates an ordered map iterator such that it cannot be modified.