Package fr.gouv.vitam.worker.core.utils
Class CountingIterator<T>
- java.lang.Object
-
- fr.gouv.vitam.worker.core.utils.CountingIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<CountingIterator.EntryWithIndex<T>>
public class CountingIterator<T> extends java.lang.Object implements java.util.Iterator<CountingIterator.EntryWithIndex<T>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CountingIterator.EntryWithIndex<T>
-
Constructor Summary
Constructors Constructor Description CountingIterator(java.util.Iterator<T> innerIterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
CountingIterator.EntryWithIndex<T>
next()
-
-
-
Constructor Detail
-
CountingIterator
public CountingIterator(java.util.Iterator<T> innerIterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
next
public CountingIterator.EntryWithIndex<T> next()
- Specified by:
next
in interfacejava.util.Iterator<T>
-
-