-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
C:\Users\hwaite>ver
Microsoft Windows [Version 10.0.22000.2538]
C:\Users\hwaite>java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment (build 21+35-2513)
OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
java.util.Map has 10 'of' convenience methods for instantiating Maps. Example:
Map<String,Integer> map = Map.of("H", 1, "C", 6, "N", 7, "O", 8);
In some cases, users may wish to obtain values in order. It'd be nice if SequencedMap had its own 'of' methods for this purpose.
C:\Users\hwaite>ver
Microsoft Windows [Version 10.0.22000.2538]
C:\Users\hwaite>java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment (build 21+35-2513)
OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
java.util.Map has 10 'of' convenience methods for instantiating Maps. Example:
Map<String,Integer> map = Map.of("H", 1, "C", 6, "N", 7, "O", 8);
In some cases, users may wish to obtain values in order. It'd be nice if SequencedMap had its own 'of' methods for this purpose.