-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: 17
-
Component/s: core-libs
-
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.