SyntaxFix
Write A Post
Hire A Developer
Questions
if the map is short you can do:
ImmutableMap.of(key, value, key2, value2); // ...up to five k-v pairs
If it is longer then:
ImmutableMap.builder() .put(key, value) .put(key2, value2) // ... .build();