Package ghidra.program.model.address
Class AddressIteratorAdapter
- java.lang.Object
-
- ghidra.program.model.address.AddressIteratorAdapter
-
- All Implemented Interfaces:
AddressIterator
,java.lang.Iterable<Address>
,java.util.Iterator<Address>
public class AddressIteratorAdapter extends java.lang.Object implements AddressIterator
-
-
Field Summary
-
Fields inherited from interface ghidra.program.model.address.AddressIterator
EMPTY_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description AddressIteratorAdapter(java.util.Iterator<Address> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Checks if there is a next address in the iteration.java.util.Iterator<Address>
iterator()
Address
next()
Get the next address.void
remove()
-
-
-
Constructor Detail
-
AddressIteratorAdapter
public AddressIteratorAdapter(java.util.Iterator<Address> iterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:AddressIterator
Checks if there is a next address in the iteration.- Specified by:
hasNext
in interfaceAddressIterator
- Specified by:
hasNext
in interfacejava.util.Iterator<Address>
- Returns:
- true if there is a next address.
-
next
public Address next()
Description copied from interface:AddressIterator
Get the next address.NOTE: This deviates from the standard
Iterator
interface by returning null instead of throwing an exception.- Specified by:
next
in interfaceAddressIterator
- Specified by:
next
in interfacejava.util.Iterator<Address>
- Returns:
- the next address in the iteration.
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Address>
-
-