Top Classes
[default module]

Package org.codehaus.commons.compiler.util.iterator

Annotations
@NotNullByDefault
Imports
org.codehaus.commons.nullanalysis.NotNullByDefault

Class Summary

Modifier and TypeClass and Description
public class
DirectoryIterator

An Iterator<File> that finds regular files who's names are accepted by the fileNameFilter and

  • exist in the given rootDirectory, or
  • exist in any subdirectory of the rootDirectory that is accepted by the directoryNameFilter.
public class
EnumerationIterator<
The element type of the enumeration and the iterator
T
>

An java.util.Iterator that iterates over the elements of an java.util.Enumeration.

public abstract class
FilterListIterator<
The element type of the list iterator
T
>

An java.util.ListIterator that retrieves its elements from a delegate java.util.ListIterator.

public class
Iterables

Utility method around Iterables and Iterators.

public class
IteratorCollection<
The element type of the iterator and the collection
T
>

A java.util.Collection that lazily reads its elements from an java.util.Iterator.

public class
MultiDimensionalIterator<
The type of the objects that the returned iterator produces
T
>

An java.util.Iterator that iterates over a delegate, which produces arrays, java.util.Collections, java.util.Enumerations or java.util.Iterators.

public class
MultiIterator<
The element type of the iterator
T
>

An java.util.Iterator that traverses a java.util.Collection of java.util.Iterators, Collections and/or arrays.

public class
ProducerIterator<
The type of the products and the iterator elements
T
>

An Iterator that iterates over all the objects produced by a delegate Producer.

public class
ReverseListIterator<
The element type of the list iterator
T
>

A java.util.ListIterator that reverses the direction of all operations of a delegate java.util.ListIterator.

public abstract class
TransformingIterator<
The element type of the delegate iterator
T1
,
The element type of this iterator
T2
>

An java.util.Iterator that transforms its elements on-the-fly.

public class
TraversingIterator

An java.util.Iterator that iterates over a delegate, and while it encounters an array, a java.util.Collection, an java.util.Enumeration or a java.util.Iterator element, it iterates over it recursively.

public class
UniterableElementException

Thrown by MultiDimensionalIterator to indicate that it has encountered an element that cannot be iterated.