E - The type of element on which this cursor will iteratepublic class EmptyCursor<E> extends AbstractCursor<E>
| Constructor and Description |
|---|
EmptyCursor() |
| Modifier and Type | Method and Description |
|---|---|
void |
after(E element)
Prepares this Cursor, so a subsequent call to Cursor#previous() with a
true return value, will have positioned the Cursor on a dataSet element
equal to or less than the element argument but not greater.
|
void |
afterLast()
Positions this Cursor after the last element.
|
boolean |
available()
Determines whether or not a call to get() will succeed.
|
void |
before(E element)
Prepares this Cursor, so a subsequent call to Cursor#next() with a
true return value, will have positioned the Cursor on a dataSet
element equal to or less than the element argument but not greater.
|
void |
beforeFirst()
Positions this Cursor before the first element.
|
void |
close()
Closes this Cursor and frees any resources it my have allocated.
|
void |
close(Exception cause)
Closes this Cursor and frees any resources it my have allocated.
|
boolean |
first()
Positions this Cursor at the first element.
|
E |
get()
Gets the object at the current position.
|
boolean |
last()
Positions this Cursor at the last element.
|
boolean |
next()
Advances this Cursor to the next position.
|
boolean |
previous()
Advances this Cursor to the previous position.
|
checkNotClosed, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor, toStringpublic boolean available()
public void before(E element) throws LdapException, CursorException, IOException
element - the element to be positioned beforeLdapExceptionCursorExceptionIOExceptionpublic void after(E element) throws LdapException, CursorException, IOException
element - the element to be positioned afterLdapExceptionCursorExceptionIOExceptionpublic void beforeFirst()
throws LdapException,
CursorException,
IOException
LdapExceptionCursorExceptionIOExceptionpublic void afterLast()
throws LdapException,
CursorException,
IOException
LdapExceptionCursorExceptionIOExceptionpublic boolean first()
throws LdapException,
CursorException,
IOException
LdapExceptionCursorExceptionIOExceptionpublic boolean last()
throws LdapException,
CursorException,
IOException
LdapExceptionCursorExceptionIOExceptionpublic boolean previous()
throws LdapException,
CursorException,
IOException
LdapExceptionCursorExceptionIOExceptionpublic boolean next()
throws LdapException,
CursorException,
IOException
LdapException - if we have get any LDAP exception while operating
the cursorCursorException - if there are problems advancing to this Cursor to
the next position, or if this Cursor is closedIOException - If we have had any IO Exceptionpublic E get() throws CursorException, IOException
CursorException - if the object at this Cursor's current position
cannot be retrieved, or if this Cursor is closedIOException - If we have had any IO Exceptionpublic void close()
public void close(Exception cause)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.