|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.shared.ldap.cursor.AbstractCursor<E>
org.apache.directory.shared.ldap.cursor.EmptyCursor<E>
public class EmptyCursor<E>
An empty Cursor implementation.
| Constructor Summary | |
|---|---|
EmptyCursor()
|
|
| Method Summary | |
|---|---|
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. |
boolean |
first()
Positions this Cursor at the first element. |
E |
get()
Gets the object at the current position. |
boolean |
isElementReused()
Gets whether or not this Cursor will return the same element object instance on get() operations for any position of this Cursor. |
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. |
| Methods inherited from class org.apache.directory.shared.ldap.cursor.AbstractCursor |
|---|
checkNotClosed, close, close, isClosed, iterator, setClosureMonitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyCursor()
| Method Detail |
|---|
public boolean available()
public void before(E element)
throws java.lang.Exception
element - the element to be positioned before
java.lang.Exception - with problems accessing the underlying btree
java.lang.UnsupportedOperationException - if this method is not supported
public void after(E element)
throws java.lang.Exception
element - the element to be positioned after
java.lang.Exception - if there are problems positioning this cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public void beforeFirst()
throws java.lang.Exception
java.lang.Exception - if there are problems positioning this cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public void afterLast()
throws java.lang.Exception
java.lang.Exception - if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public boolean first()
throws java.lang.Exception
java.lang.Exception - if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public boolean last()
throws java.lang.Exception
java.lang.Exception - if there are problems positioning this Cursor or if
this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public boolean previous()
throws java.lang.Exception
java.lang.Exception - if there are problems advancing to the next position
java.lang.UnsupportedOperationException - if this method is not supported
public boolean next()
throws java.lang.Exception
java.lang.Exception - if there are problems advancing to this Cursor to
the next position, or if this Cursor is closed
java.lang.UnsupportedOperationException - if this method is not supported
public E get()
throws java.lang.Exception
java.lang.Exception - if the object at this Cursor's current position
cannot be retrieved, or if this Cursor is closedpublic boolean isElementReused()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||