Java: how to use Google's HashBiMap?

Posted by HH on Stack Overflow See other posts from Stack Overflow or by HH
Published on 2010-04-04T14:21:21Z Indexed on 2010/04/04 14:33 UTC
Read the original article Hit count: 237

Filed under:
|
|

Keys are a file and a word. The file gives all words inside the file. The word gives all files having the word. I am unsure of the domain and co-domain parts. I want K to be of the type <String> and V to be of type <HashSet<FileObject>>.

    public HashBiMap<K<String>,V<HashSet<FileObject>>> wordToFiles 
            = new HashBiMap<K<String>,V<HashSet<FileObject>>>();

    public HashBiMap<K<String>,V<HashSet<FileObject>>> fileToWords 
            = new HashBiMap<K<String>,V<HashSet<FileObject>>>();

Google's HashBiMap.

© Stack Overflow or respective owner

Related posts about java

Related posts about hashbimap