Class 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 Detail

      • CursorIterator

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

      • 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>