| java.lang.Object org.hsqldb.lib.WrapperIterator
WrapperIterator | public class WrapperIterator implements Iterator(Code) | | An Iterator that returns the elements of a specified array, or other
iterators etc. The collection of objects returned depends on the
constructor used.
Based on similar Enumerator code by boucherb@users
author: fred@users version: 1.7.2 since: HSQLDB 1.7.2 |
Method Summary | |
public boolean | hasNext() Tests if this iterator contains more elements. | public Object | next() Returns the next element. | public int | nextInt() | public long | nextLong() | public void | remove() |
WrapperIterator | public WrapperIterator()(Code) | | Constructor for an empty iterator.
|
WrapperIterator | public WrapperIterator(Object[] elements)(Code) | | Constructor for all elements of the specified array.
Parameters: elements - the array of objects to enumerate |
WrapperIterator | public WrapperIterator(Object[] elements, boolean notNull)(Code) | | Constructor for not-null elements of specified array.
Parameters: elements - the array of objects to iterate |
WrapperIterator | public WrapperIterator(Object element)(Code) | | Constructor for a singleton object iterator
Parameters: element - the single object to iterate |
WrapperIterator | public WrapperIterator(Iterator it1, Iterator it2)(Code) | | Constructor for a chained iterator that retuns the elements of the two
specified iterators.
Parameters: element - the single object to iterate |
hasNext | public boolean hasNext()(Code) | | Tests if this iterator contains more elements.
true if this iterator contains more elements;false otherwise. |
nextInt | public int nextInt()(Code) | | |
nextLong | public long nextLong()(Code) | | |
remove | public void remove()(Code) | | |
|
|