3 /** This interface extends the Iterator interface
4 * to allow insertion of data and move to previous entries
7 public interface Cursor extends java.util.Iterator {
9 /** Is there a previous element in the collection? */
10 public abstract boolean hasPrev();
12 /** Get the previous element */
13 public abstract Object prev() throws java.util.NoSuchElementException;
15 /** Point the list at a particular element.
16 * Point to the end of the list if the key is not found.
18 public abstract void setKey(Object key);
20 /** Add an unkeyed element to the collection.
21 * The new element is placed such that it will be called
22 * by a prev() call, but not a next() call.
24 public abstract void add(Object reference);
26 /** Add a keyed element to the collection.
27 * The new element is placed such that it will be called
28 * by a prev() call, but not a next() call.
30 public abstract void add(Object key, Object reference);