To instantiate BiMap Of google-collections in Java

Posted by Masi on Stack Overflow See other posts from Stack Overflow or by Masi
Published on 2010-03-11T21:49:21Z Indexed on 2010/03/12 7:37 UTC
Read the original article Hit count: 354

Filed under:
|
|
|

How can you instantiate a Bimap of Google-collections?

I know the thread.

A sample of my code

import com.google.common.collect.BiMap;

public class UserSettings {

 private Map<String, Integer> wordToWordID;

 UserSettings() {

  this.wordToWordID = new BiMap<String. Integer>();

I get cannot instantiate the type BiMap<String, Integer>.

© Stack Overflow or respective owner

Related posts about google-collections

Related posts about bimap