T
- public class ConvertingClosableIterator<T> extends Object implements ClosableIterator<T>
ClosableIterator
that uses the registered type converters to turn
an iterator over RDF2Go Node
objects to a type Constructor and Description |
---|
ConvertingClosableIterator(ClosableIterator<Node> it,
Model model,
Class<T> returnType) |
Modifier and Type | Method and Description |
---|---|
void |
close()
The uderlying implementation frees resources.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
T |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ConvertingClosableIterator(ClosableIterator<Node> it, Model model, Class<T> returnType)
it
- model
- returnType
- given as a java class to allow runtime reflection on itpublic boolean hasNext()
ClosableIterator
public void close()
ClosableIterator
close
in interface ClosableIterator<T>
public T next()
ClosableIterator
ClosableIterator.hasNext()
method returns false will return each
element in the underlying collection exactly once.public void remove()
ClosableIterator
Copyright © 2005–2017 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.