Package ghidra.util.database

# Class BackwardRecordIterator

java.lang.Object
ghidra.util.database.AbstractDirectedRecordIterator
ghidra.util.database.BackwardRecordIterator

All Implemented Interfaces:
  `DirectedIterator<DBRecord>`, `DirectedRecordIterator`

public class BackwardRecordIterator extends AbstractDirectedRecordIterator
A wrapper of `RecordIterator` that runs it backward and implements `DirectedRecordIterator`

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface ghidra.util.database.DirectedIterator

  `DirectedIterator.Direction`

- ## Field Summary

  ### Fields inherited from class ghidra.util.database.AbstractDirectedRecordIterator

  `it`

  ### Fields inherited from interface ghidra.util.database.DirectedRecordIterator

  `EMPTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BackwardRecordIterator(RecordIterator it)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  Check if the table has another record
  `DBRecord`
  `next()`
  Get the component of the next record

  ### Methods inherited from class ghidra.util.database.AbstractDirectedRecordIterator

  `delete`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BackwardRecordIterator

    public BackwardRecordIterator(RecordIterator it)

- ## Method Details

  - ### hasNext

    public boolean hasNext() throws IOException
    Description copied from interface: `DirectedIterator`
    Check if the table has another record
    Returns:
      true if so
    Throws:
      `IOException` - if the table cannot be read

  - ### next

    public DBRecord next() throws IOException
    Description copied from interface: `DirectedIterator`
    Get the component of the next record
    Returns:
      the component
    Throws:
      `IOException` - if the table cannot be read