Top Description Classes
[default module]

Package org.apache.commons.collections4.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

Modifier and TypeClass and Description
pack-priv abstract class
AbstractEmptyIterator<E>

Provides an implementation of an empty iterator.

public abstract class
AbstractEmptyMapIterator<
the type of keys
K
,
the type of mapped values
V
>

Provides an implementation of an empty map iterator.

public abstract class
AbstractIteratorDecorator<E>

Provides basic behaviour for decorating an iterator with extra functionality.

public class
AbstractListIteratorDecorator<E>

Provides basic behaviour for decorating a list iterator with extra functionality.

public class
AbstractMapIteratorDecorator<
the type of keys
K
,
the type of mapped values
V
>

Provides basic behaviour for decorating a map iterator with extra functionality.

public class
AbstractOrderedMapIteratorDecorator<
the type of keys
K
,
the type of mapped values
V
>

Provides basic behaviour for decorating an ordered map iterator with extra functionality.

public abstract class
AbstractUntypedIteratorDecorator<I, O>

Provides basic behaviour for decorating an iterator with extra functionality without committing the generic type of the Iterator implementation.

public class
ArrayIterator<
the type of elements returned by this iterator
E
>

Implements an Iterator over any array.

public class
ArrayListIterator<E>

Implements a java.util.ListIterator over an array.

public class
BoundedIterator<E>

Decorates another iterator to return elements in a specific range.

public class
CollatingIterator<E>

Provides an ordered iteration over the elements contained in a collection of ordered Iterators.

public class
EmptyIterator<E>

Provides an implementation of an empty iterator.

public class
EmptyListIterator<E>

Provides an implementation of an empty list iterator.

public class
EmptyMapIterator<
the type of keys
K
,
the type of mapped values
V
>

Provides an implementation of an empty map iterator.

public class
EmptyOrderedIterator<
the type to iterate.
E
>

Provides an implementation of an empty ordered iterator.

public class
EmptyOrderedMapIterator<
the type of keys
K
,
the type of mapped values
V
>

Provides an implementation of an empty ordered map iterator.

public class
EntrySetMapIterator<
the type of keys
K
,
the type of mapped values
V
>

Implements a MapIterator using a Map entrySet.

public class
EnumerationIterator<E>

Adapter to make Enumeration instances appear to be Iterator instances.

public class
FilterIterator<E>

Decorates another Iterator using a predicate to filter elements.

public class
FilterListIterator<E>

Decorates another ListIterator using a predicate to filter elements.

public class
IteratorChain<E>

An IteratorChain is an Iterator that wraps a number of Iterators.

public class
IteratorEnumeration<E>

Adapter to make an Iterator instance appear to be an Enumeration instance.

public class
IteratorIterable<E>

Adapter to make an Iterator instance appear to be an Iterable instance.

public abstract class
LazyIteratorChain<E>

An LazyIteratorChain is an Iterator that wraps a number of Iterators in a lazy manner.

public class
public class
LoopingIterator<E>

An Iterator that restarts when it reaches the end.

public class
LoopingListIterator<E>

A ListIterator that restarts when it reaches the end or when it reaches the beginning.

public class
public class
ObjectArrayIterator<
the type of elements returned by this iterator
E
>

An Iterator over an array of objects.

public class
ObjectArrayListIterator<E>

Implements a java.util.ListIterator over an array of objects.

public class
ObjectGraphIterator<E>

An Iterator that can traverse multiple iterators down an object graph.

public class
PeekingIterator<E>

Decorates an iterator to support one-element lookahead while iterating.

public class
PermutationIterator<
the type of the objects being permuted
E
>

This iterator creates permutations of an input collection, using the Steinhaus-Johnson-Trotter algorithm (also called plain changes).

public class
PushbackIterator<E>

Decorates an iterator to support pushback of elements.

public class
ReverseListIterator<E>

Iterates backwards through a List, starting with the last element and continuing to the first.

public class
SingletonIterator<E>

SingletonIterator is an java.util.Iterator over a single object instance.

public class
SingletonListIterator<E>

SingletonIterator is an java.util.ListIterator over a single object instance.

public class
SkippingIterator<E>

Decorates another iterator to skip the first N elements.

public class
TransformIterator<I, O>

Decorates an iterator such that each element returned is transformed.

public class
UniqueFilterIterator<E>

A FilterIterator which only returns "unique" Objects.

public class
UnmodifiableIterator<E>

Decorates an iterator such that it cannot be modified.

public class
UnmodifiableListIterator<E>

Decorates a list iterator such that it cannot be modified.

public class
UnmodifiableMapIterator<
the type of keys
K
,
the type of mapped values
V
>

Decorates a map iterator such that it cannot be modified.

public class
UnmodifiableOrderedMapIterator<
the type of keys
K
,
the type of mapped values
V
>

Decorates an ordered map iterator such that it cannot be modified.

public class
ZippingIterator<E>

Provides an interleaved iteration over the elements contained in a collection of Iterators.