📜  不可变映射 java 代码示例

📅  最后修改于: 2022-03-11 14:52:33.354000             🧑  作者: Mango

代码示例1
ImmutableMap immutableMap
  = ImmutableMap.of("USA", "North America", "Costa Rica", "North America");
assertTrue(immutableMap.containsKey("USA"));
assertTrue(immutableMap.containsKey("Costa Rica"));