Here you can find the source of hashCode(Object o1, Object o2)
public static int hashCode(Object o1, Object o2)
//package com.java2s; //License from project: Open Source License public class Main { public static int hashCode(Object o1, Object o2) { int hash = 7; if (o1 != null) hash = 29 * hash + o1.hashCode(); if (o2 != null) hash = 29 * hash + o2.hashCode(); return hash; }/*w ww .j a v a 2 s . c o m*/ }