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 Details

    • CursorIterator

      public CursorIterator(Cursor<E> cursor)
      Creates a new instance of CursorIterator.
      Parameters:
      cursor - The inner cursor
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<E>