-
Type:
Enhancement
-
Resolution: Won't Fix
-
Priority:
P4
-
Affects Version/s: 7
-
Component/s: core-libs
A DESCRIPTION OF THE REQUEST :
The java.util.Collections utility class has a method to return a singleton Iterator. This method is package private.
JUSTIFICATION :
Making this method public would allow it to be used in application code.
Currently one needs to use singletonList(element).iterator() or write their own Iterator.
The java.util.Collections utility class has a method to return a singleton Iterator. This method is package private.
JUSTIFICATION :
Making this method public would allow it to be used in application code.
Currently one needs to use singletonList(element).iterator() or write their own Iterator.
- relates to
-
JDK-8345443 Add Collections.unmodifiableIterator and related methods
-
- Open
-