Here you can find the source of hashCode(final int x, final int y)
public static int hashCode(final int x, final int y)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w.ja va 2 s .c o m * Returns an integer hash code for a point. * * @return an integer hash code for a point */ public static int hashCode(final int x, final int y) { final int hashX = ((Integer) x).hashCode(); final int hashY = ((Integer) y).hashCode(); return 31 * hashX + hashY; } }