move to java7 hash code calculation