Package org.apache.commons.collections4.iterators
package org.apache.commons.collections4.iterators
Implements 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.
-
ClassDescriptionProvides an implementation of an empty map iterator.Provides basic behavior for decorating an iterator with extra functionality.Provides basic behavior for decorating a list iterator with extra functionality.Provides basic behavior for decorating a map iterator with extra functionality.Provides basic behavior for decorating an ordered map iterator with extra functionality.Provides basic behavior for decorating an iterator with extra functionality without committing the generic type of the Iterator implementation.Implements an
Iteratorover any array.Implements aListIteratorover an array.Decorates another iterator to return elements in a specific range.This iterator creates a Cartesian product of the input iterables, equivalent to nested for-loops.Provides an ordered iteration over the elements contained in a collection of ordered Iterators.Provides an implementation of an empty iterator.Provides an implementation of an empty list iterator.EmptyMapIterator<K,V> Provides an implementation of an empty map iterator.Provides an implementation of an empty ordered iterator.Provides an implementation of an empty ordered map iterator.EntrySetMapIterator<K,V> Implements aMapIteratorusing a Map entrySet.Adapter to makeEnumerationinstances appear to beIteratorinstances.Extends Iterator functionality to include operations commonly found on streams (for example filtering, concatenating, mapping).Decorates anIteratorusing an optional predicate to filter elements.Decorates anotherListIteratorusing a predicate to filter elements.An IteratorChain is an Iterator that wraps a number of Iterators.Adapter to make anIteratorinstance appear to be anEnumerationinstance.ExtendsIteratorwith additional default methods.An LazyIteratorChain is an Iterator that wraps a number of Iterators in a lazy manner.Converts anIteratorinto aResettableListIterator.An Iterator that restarts when it reaches the end.A ListIterator that restarts when it reaches the end or when it reaches the beginning.AnIteratorover an array of objects.Implements aListIteratorover an array of objects.An Iterator that can traverse multiple iterators down an object graph.Decorates an iterator to support one-element lookahead while iterating.This iterator creates permutations of an input collection, using the Steinhaus-Johnson-Trotter algorithm (also called plain changes).Decorates an iterator to support pushback of elements.Iterates backwards through a List, starting with the last element and continuing to the first.SingletonIteratoris anIteratorover a single object instance.SingletonIteratoris anListIteratorover a single object instance.Decorates another iterator to skip the first N elements.TransformIterator<I,O> Decorates an iterator such that each element returned is transformed.A FilterIterator which only returns "unique" Objects.Decorates an iterator such that it cannot be modified.Decorates a list iterator such that it cannot be modified.Decorates a map iterator such that it cannot be modified.Decorates an ordered map iterator such that it cannot be modified.Provides an interleaved iteration over the elements contained in a collection of Iterators.