@Override public int hashCode() { int result = 17; if (cal != null) result += 37 * result + cal.hashCode(); result += 37 * result + dateTime.hashCode(); return result; }
@Override public int hashCode() { if (hashCode == 0) { int result = 17; if (cal != null) result += 37 * result + cal.hashCode(); result += 37 * result + dateTime.hashCode(); hashCode = result; } return hashCode; } private int hashCode = 0;
@Override public int hashCode() { int result = 17; if (cal != null) result += 37 * result + cal.hashCode(); result += 37 * result + dateTime.hashCode(); return result; }