Interface BackupManager.CountedIterator<E>

Type Parameters:
E - the type of elements being iterated
All Superinterfaces:
Iterator<E>
All Known Implementing Classes:
BackupManager.FixedBackendIterator
Enclosing class:
BackupManager

public static interface BackupManager.CountedIterator<E> extends Iterator<E>
Iterator able to return a count of progress and the total number of items to be processed.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the number of iterations so far.
    int
    Return the total number of possible iterations, which could change over time.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Method Details

    • count

      int count()
      Return the number of iterations so far.
      Returns:
      the number of iterations.
    • total

      int total()
      Return the total number of possible iterations, which could change over time.
      Returns:
      the total number of iterations.