Package fr.gouv.vitam.common.iterables

# Class CountingIterator<T>

java.lang.Object
fr.gouv.vitam.common.iterables.CountingIterator<T>

All Implemented Interfaces:
  `Iterator<CountingIterator.EntryWithIndex<T>>`

public class CountingIterator<T> extends Object implements 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(Iterator<T> innerIterator)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `CountingIterator.EntryWithIndex<T>`
  `next()`

  ### 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, remove`

- ## Constructor Details

  - ### CountingIterator

    public CountingIterator(Iterator<T> innerIterator)

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<T>`

  - ### next

    public CountingIterator.EntryWithIndex<T> next()
    Specified by:
      `next` in interface `Iterator<T>`