Can anyone tell me whether this class is threadsafe or not ?
class Foo { private final Map aMap; public Foo() { aMap =
Guava has immutable classes for making this sort of thing easier and guaranteed immutable:
private final ImmutableMap aMap = ImmutableMap.of( "1", "a", "2", "b", "3", "c");