Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8323729

Add .of() method for SequencedMap interface

XMLWordPrintable

      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.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: