public class IteratorDataModelSource extends Object implements DataModelSource
DataModelSource
implementation via the Iterator
interface.Constructor and Description |
---|
IteratorDataModelSource(DataModelDefinition<E> definition,
Iterator<? extends E> iterator)
Creates a new instance.
|
IteratorDataModelSource(Iterator<? extends DataModelReflection> iterator)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
DataModelReflection |
next()
Returns the next model object (in a generic reflection form).
|
public IteratorDataModelSource(Iterator<? extends DataModelReflection> iterator)
iterator
- entity iteratorIllegalArgumentException
- if some parameters were null
public IteratorDataModelSource(DataModelDefinition<E> definition, Iterator<? extends E> iterator)
E
- type of data modeldefinition
- the data model definitioniterator
- data model objectsIllegalArgumentException
- if some parameters were null
public DataModelReflection next()
DataModelSource
next
in interface DataModelSource
null
if no such objects existpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.