Interface DataIterator

All Superinterfaces:
Iterable<Data>, Iterator<Data>
All Known Implementing Classes:
DataFilteredCodeUnitIterator, DataIterator.IteratorWrapper, DataKeyIterator, DataRecordIterator, DefinedDataIterator

public interface DataIterator extends Iterator<Data>, Iterable<Data>
Interface to define an iterator over over some set of Data.
See Also:
  • Field Details

  • Method Details

    • 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 interface Iterator<Data>
    • next

      Data next()
      Specified by:
      next in interface Iterator<Data>
    • iterator

      default Iterator<Data> iterator()
      Specified by:
      iterator in interface Iterable<Data>