Interface CloseableIterator<T>

    • Method Detail

      • close

        void close()
        Should be implemented to close/release any underlying resources.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • toList

        default List<T> toList()
        Consumes the contents of the iterator and returns it as a List.
      • stream

        default Stream<T> stream()
        Returns a Stream that will consume from the underlying iterator.