public Iterator<Tuple<K, V>> iterator() { return new CursorIterator<Tuple<K, V>>( this ); } }
/** * {@inheritDoc} */ public void beforeFirst() throws Exception { checkNotClosed( "()" ); beforeFirst = true; afterLast = false; onSingleton = false; }
/** * Check that the cursor is not closed. * * @param operation * @throws Exception */ protected final void checkNotClosed( String operation ) throws Exception { monitor.checkNotClosed(); }
public boolean previous() throws Exception { return wrappedCursor.previous(); }
public final boolean isClosed() { return monitor.isClosed(); }
/** * {@inheritDoc} */ public void close() throws Exception { monitor.close(); }
/** * {@inheritDoc} */ public void afterLast() throws Exception { checkNotClosed( "afterLast()" ); }
/** * {@inheritDoc} */ public void beforeFirst() throws Exception { checkNotClosed( "beforeFirst()" ); this.index = -1; }
/** * {@inheritDoc} */ public Iterator<E> iterator() { return new CursorIterator<E>( this ); } }
public final boolean isClosed() { return monitor.isClosed(); }
/** * {@inheritDoc} */ public boolean isBeforeFirst() throws Exception { checkNotClosed( "()" ); return beforeFirst; }
/** * {@inheritDoc} */ public void after( E element ) throws Exception { checkNotClosed( "after()" ); }
/** * {@inheritDoc} */ public boolean isBeforeFirst() throws Exception { checkNotClosed( "isBeforeFirst()" ); return index == -1; }
public Iterator<IndexEntry<K, O, ID>> iterator() { return new CursorIterator<IndexEntry<K, O, ID>>( this ); } }
/** * {@inheritDoc} */ public boolean isAfterLast() throws Exception { checkNotClosed( "()" ); return afterLast; }
/** * {@inheritDoc} */ public boolean first() throws Exception { checkNotClosed( "first()" ); return false; }
public Iterator<ServerEntry> iterator() { return new CursorIterator<ServerEntry>( this ); } }
/** * {@inheritDoc} */ public boolean isFirst() throws Exception { checkNotClosed( "()" ); return onSingleton; }
/** * {@inheritDoc} */ public boolean previous() throws Exception { checkNotClosed( "previous()" ); return false; }
public Iterator<IndexEntry<K, E, ID>> iterator() { return new CursorIterator<IndexEntry<K, E, ID>>( this ); } }