Package ghidra.program.model.listing
Interface DataIterator
-
- All Known Implementing Classes:
DataFilteredCodeUnitIterator
,DataIterator.IteratorWrapper
,DataKeyIterator
,DataRecordIterator
,DefinedDataIterator
public interface DataIterator extends java.util.Iterator<Data>, java.lang.Iterable<Data>
Interface to define an iterator over over some set of Data.- See Also:
CollectionUtils.asIterable(T)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DataIterator.IteratorWrapper
-
Field Summary
Fields Modifier and Type Field Description static DataIterator
EMPTY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
hasNext()
default java.util.Iterator<Data>
iterator()
Data
next()
static DataIterator
of(Data... dataInstances)
Create a DataIterator that returns a sequence of the specified items.
-
-
-
Field Detail
-
EMPTY
static final DataIterator EMPTY
-
-
Method Detail
-
of
static DataIterator of(Data... dataInstances)
Create a DataIterator that returns a sequence of the specified items.- Parameters:
dataInstances
- variable length list of items that will be iterated- Returns:
- new Iterator
-
hasNext
boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<Data>
-
-