There are utility methods to create ImmutableMap like Immutable.of(Key, value) and its overload. But such methods don\'t exist for
ImmutableMap
Immutable.of(Key, value)
cannot you use the copyOf method of ImmutableMap described here?
copyOf
it should be something like
Map newImmutableMap = ImmutableMap.copyOf(yourMap);