【发布时间】:2010-03-11 21:49:21
【问题描述】:
如何实例化 Google 集合的 Bimap?
我已阅读问题Java: Instantiate Google Collection's HashBiMap
我的代码示例
import com.google.common.collect.BiMap;
public class UserSettings {
private Map<String, Integer> wordToWordID;
UserSettings() {
this.wordToWordID = new BiMap<String. Integer>();
我收到cannot instantiate the type BiMap<String, Integer>。
【问题讨论】: