Class OrderedMap


  • public class OrderedMap
    extends java.lang.Object
    Standard Map.of() does not guarantee the determined order of key-value pairs in the resulting map. This utility class fixes this by using LinkedHashMap under the hood.
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedMap()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> of​(java.lang.String... values)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrderedMap

        public OrderedMap()
    • Method Detail

      • of

        public static java.util.Map<java.lang.String,​java.lang.String> of​(java.lang.String... values)