Is there a short and handy way to create pre-populated java map?
E.g. a new list can be easily created from an array using Arrays.asList("A", "B", "C")
but there is no such method like Arrays.toMap({"key1", "value1"}, {"key2", "value2"}, ...)
or
If there is no such method in JDK, is there a utility lib which I can use?
Thank you!