com.aliasi.util
Class Iterators

java.lang.Object
  extended by com.aliasi.util.Iterators

public class Iterators
extends Object

Static utility methods for iteration.

Since:
LingPipe2.0
Version:
3.0
Author:
Bob Carpenter

Nested Class Summary
static class Iterators.Array<E>
          An Iterator.Array iterates over the elements of an array specified at construction time.
static class Iterators.ArraySlice<E>
          An Iterators.ArraySlice iterates over a slice of an array specified by start index and length.
static class Iterators.Buffered<E>
          An Iterators.Buffered uses a single method to return objects, buffering the result and returning it as the next element if it is non-null.
static class Iterators.Empty<E>
          An Iterator.Empty is an iterator with no objects.
static class Iterators.Filter<E>
          An Iterators.Filter filters the stream of objects returned by another iterator by subjecting them to an acceptance test.
static class Iterators.Modifier<E>
          An Iterator.Modifier uses a single abstract method to operate on the elements returned by an underlying iterator to return modified objects.
static class Iterators.Pair<E>
          An Iterators.Pair provides an iterator over a sequence of exactly two elements.
static class Iterators.Sequence<E>
          An Iterators.Sequence iterates over the elements of an ordered sequence of iterators in turn.
static class Iterators.Singleton<E>
          An Iterator.Singleton is an iterator over a singleton object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait