Hacker News new | ask | show | jobs
by cesarb 1353 days ago
For those of us still using Java 8, ImmutableMap.of() (from Guava) is similar (and probably the inspiration for Map.of()), as long as you don't need your Map to be modified later.