-
Enhancement
-
Resolution: Won't Fix
-
P4
-
7
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
-