title: Keeping a pair of primitives in a Java HashMap
body: <p>I have a list of files. I would like to scan through and keep a count of the number of files with the same size. the issue is with filesize which is a long, as we know, hashmap will take in only an object and not a primitive. So using <code>new Long(filesize)</code>, I put it into the hashmap. instead of getting a pair of (filesize, count), I got a list of (filesize, 1) due to the fact that each Long obj is unique. </p>
  
  <p>How do I go about building this accumulator? </p>
  
  <p>Any solution for 1.4.2?</p>