Using an array as a hashmap key
<p>I am trying to use an Array as the keys in a HashMap. The arrays are of length two, so are essentially acting as a 2-tuple. Implementing a custom 2-tuple class is a very last resort. The problem is, I want arrays with the same contents map to different location in the HashMap if they have different memory locations. I know there are hashCode functions in Arrays.hashCode and Arrays.deepHashCode, but is there any way I can use these for a HashMap. As I already said, I really don't want to implement my own tuple class. </p>
