Interface DataObjectIterator<T extends DataObject>
-
- All Superinterfaces:
Iterator<T>
- All Known Implementing Classes:
DataObjectIteratorImpl
public interface DataObjectIterator<T extends DataObject> extends Iterator<T>
Extends the standardIteratorwith an additional method.To prevent casting, this iterator provides the addition method
nextDataObject()that directly returns aDataObjectinstead ofObject. The functionality is the same likeIterator.next().The meaning of the other
Iteratormethods is the same. Attention: many object containers in CAKE does not support theIterator.remove()method and are throwing anUnsupportedOperationException.- Author:
- Rainer Maximini
- See Also:
Iterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TnextDataObject()Returns the nextDataObjectin the iteration.-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
nextDataObject
T nextDataObject()
Returns the nextDataObjectin the iteration.- Returns:
- the next
DataObjectin the iteration. - Throws:
NoSuchElementException- iteration has no moreDataObjects.- See Also:
Iterator.next()
-
-