Package org.opends.server.backup
Class BackupManager.FixedBackendIterator<E>
java.lang.Object
org.opends.server.backup.BackupManager.FixedBackendIterator<E>
- Type Parameters:
E
- the type of elements being iterated
- All Implemented Interfaces:
Iterator<E>
,BackupManager.CountedIterator<E>
- Enclosing class:
- BackupManager
public static final class BackupManager.FixedBackendIterator<E>
extends Object
implements BackupManager.CountedIterator<E>
Counted iterator returning elements from a list.
-
Constructor Details
-
FixedBackendIterator
Builds a FixedBackendIterator.- Parameters:
elements
- the elements to iterate upon
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
count
public int count()Description copied from interface:BackupManager.CountedIterator
Return the number of iterations so far.- Specified by:
count
in interfaceBackupManager.CountedIterator<E>
- Returns:
- the number of iterations.
-
total
public int total()Description copied from interface:BackupManager.CountedIterator
Return the total number of possible iterations, which could change over time.- Specified by:
total
in interfaceBackupManager.CountedIterator<E>
- Returns:
- the total number of iterations.
-