Interface DataObjectIterator<T extends DataObject>
- All Superinterfaces:
Iterator<T>
- All Known Implementing Classes:
DataObjectIteratorImpl
Extends the standard
Iterator
with an additional method.
To prevent casting, this iterator provides the addition method nextDataObject()
that
directly returns a DataObject
instead of Object
. The functionality is
the same like Iterator.next()
.
The meaning of the other Iterator
methods is the same. Attention: many
object containers in CAKE does not support the Iterator.remove()
method and are
throwing an UnsupportedOperationException
.
- Author:
- Rainer Maximini
- See Also:
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
nextDataObject
T nextDataObject()Returns the nextDataObject
in the iteration.- Returns:
- the next
DataObject
in the iteration. - Throws:
NoSuchElementException
- iteration has no moreDataObject
s.- See Also:
-