mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GT-3414 revert Iterable change.
This commit is contained in:
parent
5a66f68e47
commit
66fc367b18
4 changed files with 16 additions and 13 deletions
|
@ -25,7 +25,7 @@ import util.CollectionUtils;
|
|||
*
|
||||
* @see CollectionUtils#asIterable
|
||||
*/
|
||||
public interface DataIterator extends Iterator<Data> {
|
||||
public interface DataIterator extends Iterator<Data>, Iterable<Data> {
|
||||
public static final DataIterator EMPTY = of(/*nothing*/);
|
||||
|
||||
/**
|
||||
|
@ -44,6 +44,11 @@ public interface DataIterator extends Iterator<Data> {
|
|||
@Override
|
||||
public Data next();
|
||||
|
||||
@Override
|
||||
default Iterator<Data> iterator() {
|
||||
return this;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
// Helper static stuff
|
||||
// --------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue