Guava为Java类型提供了很棒的工厂方法,例如Maps.newHashMap()。
但是,还有Java Maps的构建器吗?
HashMap<String,Integer> m = Maps.BuildHashMap. put("a",1). put("b",2). build();