title: Best way to create, search and modify (key ,value1, value2) in Java
body: <p>My program is searching a log, and counting the number of times some events occur (along with the bytes associated with each event). I would like to store events of interest to me as a (key, value1, value2) where the string is the key, and the values are two longs. I need to be able to search if the key alrady exists in the structure, and I will need to be able to modify the two long values.</p>
  
  <p>I am not going to go the database route or storing the data in another text file.</p>
  
  <p>I was not successful in finding something using the Stack Overflow search, and the Oracle tutorials and collections documentation did little to help me. My options (as I understand it) are:</p>
  
  <ol>
  <li>a map consisting of (string, array)</li>
  <li>2D array (where I molest strings to longs and back)</li>
  <li>a tuple object</li>
  </ol>
  
  <p>Am I overlooking other possible solutions that are superior? And if not, which do you suggest I use?</p>
  
  <p>Thanks in advance!</p>