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 class BackupManager.FixedBackendIterator<E> extends Object implements BackupManager.CountedIterator<E>
Counted iterator returning elements from a list.
-
-
Constructor Summary
Constructors Constructor Description FixedBackendIterator(Collection<E> elements)
Builds a FixedBackendIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
Return the number of iterations so far.boolean
hasNext()
E
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<E> elements)
Builds a FixedBackendIterator.- Parameters:
elements
- the elements to iterate upon
-
-
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<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.
-
-