Interface DataIterator

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

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

        default java.util.Iterator<Data> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Data>