org.hsqldb.lib
Class WrapperIterator
- java.lang.Object
-
- org.hsqldb.lib.WrapperIterator
-
- All Implemented Interfaces:
- Iterator
public class WrapperIterator extends java.lang.Object implements Iterator
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
- Since:
- HSQLDB 1.7.2
-
-
Constructor Summary
Constructors Constructor and Description WrapperIterator()Constructor for an empty iterator.WrapperIterator(Iterator it1, Iterator it2)Constructor for a chained iterator that returns the elements of the two specified iterators.WrapperIterator(java.lang.Object element)Constructor for a singleton object iteratorWrapperIterator(java.lang.Object[] elements)Constructor for all elements of the specified array.WrapperIterator(java.lang.Object[] elements, boolean notNull)Constructor for not-null elements of specified array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasNext()Tests if this iterator contains more elements.java.lang.Objectnext()Returns the next element.intnextInt()longnextLong()voidremove()voidsetValue(java.lang.Object value)
-
-
-
Constructor Detail
-
WrapperIterator
public WrapperIterator()
Constructor for an empty iterator.
-
WrapperIterator
public WrapperIterator(java.lang.Object[] elements)
Constructor for all elements of the specified array.- Parameters:
elements- the array of objects to enumerate
-
WrapperIterator
public WrapperIterator(java.lang.Object[] elements, boolean notNull)Constructor for not-null elements of specified array.- Parameters:
elements- the array of objects to iterate
-
WrapperIterator
public WrapperIterator(java.lang.Object element)
Constructor for a singleton object iterator- Parameters:
element- the single object to iterate
-
-
DataMelt 3.0 © DataMelt by jWork.ORG