Class CursorIterator<E>
- java.lang.Object
-
- org.apache.directory.api.ldap.model.cursor.CursorIterator<E>
-
- Type Parameters:
E
- The type of element on which this cursor will iterate
- All Implemented Interfaces:
Iterator<E>
public class CursorIterator<E> extends Object implements Iterator<E>
An Iterator over a Cursor so Cursors can be Iterable for using in foreach constructs.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description CursorIterator(Cursor<E> cursor)
Creates a new instance of CursorIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
CursorIterator
public CursorIterator(Cursor<E> cursor)
Creates a new instance of CursorIterator.- Parameters:
cursor
- The inner cursor
-
-