Skip to content

Instantly share code, notes, and snippets.

@krisskross
Created May 18, 2012 16:58
Show Gist options
  • Save krisskross/2726396 to your computer and use it in GitHub Desktop.
Save krisskross/2726396 to your computer and use it in GitHub Desktop.
BiMap<String, String> languageCodes = HashBiMap.create();
languageCodes.put("en", "English");
languageCodes.put("fr", "French");
languageCodes.put("zh", "Chinese");
assert "English" == languageCodes.get("en");
assert "en&amp" == languageCodes.inverse().get("English");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment