|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.instance.model.impl.GenericResourceIteratorAdapter<S,T>
S
- the source object type served by the wrapped iteratorT
- the object type served by the resource iteratorpublic abstract class GenericResourceIteratorAdapter<S,T>
ResourceIterator
adapter for a normal iterator that can perform a
conversion from the iterator elements to a target element type.
Constructor Summary | |
---|---|
GenericResourceIteratorAdapter(Iterator<S> iterator)
Create a ResourceIterator adapter for the given iterator. |
Method Summary | |
---|---|
void |
close()
Dispose the iterator. |
protected abstract T |
convert(S next)
Convert an object before it is returned by next() . |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericResourceIteratorAdapter(Iterator<S> iterator)
ResourceIterator
adapter for the given iterator.
iterator
- the iterator to adaptMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<T>
Iterator.hasNext()
public T next()
next
in interface Iterator<T>
Iterator.next()
protected abstract T convert(S next)
next()
.
next
- the object to convert
public void remove()
remove
in interface Iterator<T>
Iterator.remove()
public void close()
ResourceIterator
Iterator.next()
may not
be called.
close
in interface ResourceIterator<T>
close
in interface Closeable
ResourceIterator.close()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |