Interface CloseableIterator<T>

    • Method Detail

      • of

        static <T> CloseableIterator<T> of​(Iterator<T> iterator)
        Wraps an existing Iterator in a CloseableIterator. If the Iterator is already of that type then it will simply be returned as-is.
      • closeIterator

        static <T> void closeIterator​(Iterator<T> iterator)