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 Detail

      • 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.