Class DataObjectIteratorImpl<T extends DataObject>
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.objectpool.impl.DataObjectIteratorImpl<T>
-
- All Implemented Interfaces:
DataObjectIterator,Iterator
public class DataObjectIteratorImpl<T extends DataObject> extends Object implements DataObjectIterator
- Author:
- Rainer Maximini
-
-
Constructor Summary
Constructors Constructor Description DataObjectIteratorImpl(Collection<T> collection)DataObjectIteratorImpl(Iterator<T> it)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()TnextDataObject()Returns the nextDataObjectin the iteration.voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
DataObjectIteratorImpl
public DataObjectIteratorImpl(Collection<T> collection)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<T extends DataObject>
-
next
public T next()
- Specified by:
nextin interfaceIterator<T extends DataObject>
-
nextDataObject
public T nextDataObject()
Description copied from interface:DataObjectIteratorReturns the nextDataObjectin the iteration.- Specified by:
nextDataObjectin interfaceDataObjectIterator<T extends DataObject>- Returns:
- the next
DataObjectin the iteration. - See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
removein interfaceIterator<T extends DataObject>
-
-