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 int
count()
Return the number of iterations so far.boolean
hasNext()
M
next()
int
total()
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.CountedIterator
Return the number of iterations so far.- Specified by:
count
in interfaceBackupManager.CountedIterator<M>
- 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<M>
- Returns:
- the total number of iterations.
-
-