Class PositionedCursor<T>

  • Type Parameters:
    T - Element type
    All Implemented Interfaces:
    java.lang.AutoCloseable, Cursor
    Direct Known Subclasses:
    IteratorCursor

    public abstract class PositionedCursor<T>
    extends AbstractCursor
    Abstract implementation of Cursor that caches its current row.
    • Constructor Detail

      • PositionedCursor

        public PositionedCursor()
    • Method Detail

      • current

        protected abstract T current()
        Returns the current row.
        Returns:
        current row
        Throws:
        java.util.NoSuchElementException - if the iteration has no more elements