E - the type of data to iteratepublic class DataSourceFromIterable<E> extends AbstractDataSource<E>
DataSource-style access to a Java-SDK-Iterable.
Created: 24.07.2011 11:07:04| Modifier and Type | Field and Description |
|---|---|
protected Iterable<E> |
source |
type| Constructor and Description |
|---|
DataSourceFromIterable(Iterable<E> source,
Class<E> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the data source
|
DataIterator<E> |
iterator()
Creates a
DataIterator for iterating the available data items. |
String |
toString() |
getTypepublic DataIterator<E> iterator()
DataSourceDataIterator for iterating the available data items.public void close()
DataSourceclose in interface Closeableclose in interface AutoCloseableclose in interface DataSource<E>close in class AbstractDataSource<E>Copyright © 2006–2016 Volker Bergmann. All rights reserved.