| net.sf.jga.fn.algorithm.FindIteratorFunctor
FindIteratorFunctor | abstract public class FindIteratorFunctor extends UnaryFunctor,FindIterator> (Code) | | Abstract base class for functors that take an input iterator and return a
FindIterator. This class provides the ability to prevent excessive
iterator wrapping by tracking the identity of the functor that has produced
the wrapped iterator, and not re-wrapping an iterator if it was produced by
the same object that is currently requesting a wrapped iterator.
Copyright © 2004-2005 David A. Hall
author: David A. Hall |
Method Summary | |
protected FindIterator<T> | wrap(Iterator<? extends T> iterator) Conditionally wraps the input iterator in a FindIterator for return. |
wrap | protected FindIterator<T> wrap(Iterator<? extends T> iterator)(Code) | | Conditionally wraps the input iterator in a FindIterator for return.
Uses a Wrapper to determine if the input iterator is one that this
object has already built and returned: if so, then there is no need
to wrap it again.
|
|
|