-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
17
-
generic
-
generic
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.
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.