Link Details

Link 933611 thumbnail
User 884233 avatar

By screener
Published: Mar 04 2013 / 20:43

Getting key from value in HashMap is not easy, because HashMap allows null values, multiple key pointing to same value. Bidirectional Map provided by Guava is good alternative in such situation but if you had to do it with Java, you may follow one of these examples.
  • 5
  • 4
  • 1145
  • 1175

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)

Voters Against This Link (4)

Play Framework
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Akka
  2. Design Patterns
  3. OO JS
  4. Cont. Delivery
  5. HTML5 Mobile
  1. Akka
  2. JUnit/EasyMock
  3. Java Performance
  4. REST
  5. Java