Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8285625

Request for a CloseableIterator interface

    XMLWordPrintable

Details

    Description

      A DESCRIPTION OF THE PROBLEM :
      public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable {}

      The above is a relatively common need and appears in various utility libraries e.g. Spring has one of these. I found a need for it but I don't use Spring, so the number of utility libs that reimplement it will grow by one today. It seems like a general concept that should be in the JDK.


      Attachments

        Activity

          People

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: