Package ghidra.program.database.util
Class EmptyRecordIterator
- java.lang.Object
-
- ghidra.program.database.util.EmptyRecordIterator
-
- All Implemented Interfaces:
RecordIterator
public class EmptyRecordIterator extends java.lang.Object implements RecordIterator
Implementation of a RecordIterator that is always empty.
-
-
Field Summary
Fields Modifier and Type Field Description static RecordIterator
INSTANCE
-
Constructor Summary
Constructors Constructor Description EmptyRecordIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
delete()
Delete the last Record read via the next or previous methods.boolean
hasNext()
Return true if a Record is available in the forward direction.boolean
hasPrevious()
Return true if a Record is available in the reverse directionDBRecord
next()
Return the nexy Record or null if one is not available.DBRecord
previous()
Return the previous Record or null if one is not available.
-
-
-
Field Detail
-
INSTANCE
public static final RecordIterator INSTANCE
-
-
Method Detail
-
hasNext
public boolean hasNext() throws java.io.IOException
Description copied from interface:RecordIterator
Return true if a Record is available in the forward direction.- Specified by:
hasNext
in interfaceRecordIterator
- Throws:
java.io.IOException
- thrown if an IO error occurs- See Also:
RecordIterator.hasNext()
-
hasPrevious
public boolean hasPrevious() throws java.io.IOException
Description copied from interface:RecordIterator
Return true if a Record is available in the reverse direction- Specified by:
hasPrevious
in interfaceRecordIterator
- Throws:
java.io.IOException
- thrown if an IO error occurs- See Also:
RecordIterator.hasPrevious()
-
next
public DBRecord next() throws java.io.IOException
Description copied from interface:RecordIterator
Return the nexy Record or null if one is not available.- Specified by:
next
in interfaceRecordIterator
- Throws:
java.io.IOException
- thrown if an IO error occurs- See Also:
RecordIterator.next()
-
previous
public DBRecord previous() throws java.io.IOException
Description copied from interface:RecordIterator
Return the previous Record or null if one is not available.- Specified by:
previous
in interfaceRecordIterator
- Throws:
java.io.IOException
- thrown if an IO error occurs- See Also:
RecordIterator.previous()
-
delete
public boolean delete() throws java.io.IOException
Description copied from interface:RecordIterator
Delete the last Record read via the next or previous methods.- Specified by:
delete
in interfaceRecordIterator
- Returns:
- true if record was successfully deleted.
- Throws:
java.io.IOException
- thrown if an IO error occurs.- See Also:
RecordIterator.delete()
-
-