Package org.opends.server.backup
Class BackupManager.FixedBackendIterator<M>
- java.lang.Object
-
- org.opends.server.backup.BackupManager.FixedBackendIterator<M>
-
- All Implemented Interfaces:
Iterator<M>,BackupManager.CountedIterator<M>
- Enclosing class:
- BackupManager
public static class BackupManager.FixedBackendIterator<M> extends Object implements BackupManager.CountedIterator<M>
-
-
Constructor Summary
Constructors Constructor Description FixedBackendIterator(Collection<M> elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()Return the number of iterations so far.booleanhasNext()Mnext()inttotal()Return the total number of possible iterations, which could change over time.-
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 Detail
-
FixedBackendIterator
public FixedBackendIterator(Collection<M> elements)
-
-
Method Detail
-
count
public int count()
Description copied from interface:BackupManager.CountedIteratorReturn the number of iterations so far.- Specified by:
countin interfaceBackupManager.CountedIterator<M>- Returns:
- the number of iterations.
-
total
public int total()
Description copied from interface:BackupManager.CountedIteratorReturn the total number of possible iterations, which could change over time.- Specified by:
totalin interfaceBackupManager.CountedIterator<M>- Returns:
- the total number of iterations.
-
-