org.apache.directory.api.ldap.model.cursor
Class CursorIterator<E>

java.lang.Object
  extended by 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
CursorIterator(Cursor<E> cursor)
          Creates a new instance of CursorIterator.
 
Method Summary
 boolean hasNext()
          
 E next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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>


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.