E - the type of data to iteratepublic class DataIteratorFromJavaIterator<E> extends Object implements DataIterator<E>
DataIterator-style access to a Java Iterator.
Created: 24.07.2011 11:09:16| Modifier and Type | Field and Description |
|---|---|
protected Iterator<E> |
source |
protected Class<E> |
type |
| Constructor and Description |
|---|
DataIteratorFromJavaIterator(Iterator<E> source,
Class<E> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the iterator.
|
Class<E> |
getType()
Returns the type of the iterated elements.
|
DataContainer<E> |
next(DataContainer<E> wrapper)
Returns the container with the next data element if available, otherwise null.
|
public Class<E> getType()
DataIteratorgetType in interface DataIterator<E>public DataContainer<E> next(DataContainer<E> wrapper)
DataIteratornext in interface DataIterator<E>wrapper - a DataContainer to receive the iterated dataDataContainer that holds the next element, or null if none is availablepublic void close()
DataIteratorclose in interface Closeableclose in interface AutoCloseableclose in interface DataIterator<E>Copyright © 2006–2016 Volker Bergmann. All rights reserved.