nom.tam.util
Interface Cursor

All Superinterfaces:
java.util.Iterator

public interface Cursor
extends java.util.Iterator

This interface extends the Iterator interface to allow insertion of data and move to previous entries in a collection.


Method Summary
 void add(java.lang.Object reference)
          Add an unkeyed element to the collection.
 void add(java.lang.Object key, java.lang.Object reference)
          Add a keyed element to the collection.
 boolean hasPrev()
          Is there a previous element in the collection?
 java.lang.Object prev()
          Get the previous element
 void setKey(java.lang.Object key)
          Point the list at a particular element.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

hasPrev

boolean hasPrev()
Is there a previous element in the collection?


prev

java.lang.Object prev()
                      throws java.util.NoSuchElementException
Get the previous element

Throws:
java.util.NoSuchElementException

setKey

void setKey(java.lang.Object key)
Point the list at a particular element. Point to the end of the list if the key is not found.


add

void add(java.lang.Object reference)
Add an unkeyed element to the collection. The new element is placed such that it will be called by a prev() call, but not a next() call.


add

void add(java.lang.Object key,
         java.lang.Object reference)
Add a keyed element to the collection. The new element is placed such that it will be called by a prev() call, but not a next() call.