- All Implemented Interfaces:
- Direct Known Subclasses:
public class DelegateFeatureIterator<F extends Feature> extends Object implements FeatureIterator<F>A feature iterator that completely delegates to a normal Iterator, simply allowing Java 1.4 code to escape the caste (sic) system.
This implementation checks the iterator to see if it implements
Closeablein order to allow for collections that make use of system resources.
- Jody Garnett, Refractions Research, Inc.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
close()Closes this iterator and releases any system resources associated with it.
hasNext()Does another Feature exist in this Iteration.
next()Get the next Feature in this iteration.
public DelegateFeatureIterator(Iterator<F> iterator)Wrap the provided iterator up as a FeatureIterator.
iterator- Iterator to be used as a delegate.
public boolean hasNext()Does another Feature exist in this Iteration.
Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
public F next() throws NoSuchElementExceptionGet the next Feature in this iteration.