How do I convert a nested Immutable Map to Map.
I have a function definition:
double total(Map<String, Map<String, Double>>);
Now for my test cases, I am writing in the following format:
val input = ImmutableMap.of(key1, ImmutableMap.of(key2, value2));
However I get an error Incompatible types: Immutable Map cannot be converted to
java.util.Map
However if it wasn't a nested Map I am able to do it.