@Test public void testHashCode() { int result = dateAndTime1.hashCode(); assertFalse(dateAndTime2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.calendarDate != null ? this.calendarDate.hashCode() : 0); hash = 37 * hash + (this.calendarEraName != null ? this.calendarEraName.hashCode() : 0); hash = 37 * hash + (this.clockTime != null ? this.clockTime.hashCode() : 0); return hash; }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.calendarDate != null ? this.calendarDate.hashCode() : 0); hash = 37 * hash + (this.calendarEraName != null ? this.calendarEraName.hashCode() : 0); hash = 37 * hash + (this.clockTime != null ? this.clockTime.hashCode() : 0); return hash; } }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.calendarDate != null ? this.calendarDate.hashCode() : 0); hash = 37 * hash + (this.calendarEraName != null ? this.calendarEraName.hashCode() : 0); hash = 37 * hash + (this.clockTime != null ? this.clockTime.hashCode() : 0); return hash; } DefaultDateAndTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate, Number[] clockTime); }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.calendarDate != null ? this.calendarDate.hashCode() : 0); hash = 37 * hash + (this.calendarEraName != null ? this.calendarEraName.hashCode() : 0); hash = 37 * hash + (this.clockTime != null ? this.clockTime.hashCode() : 0); return hash; } DefaultDateAndTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate, Number[] clockTime); Number[] getClockTime(); InternationalString getCalendarEraName(); int[] getCalendarDate(); void setCalendarEraName(InternationalString calendarEraName); void setCalendarDate(int[] calendarDate); void setClockTime(Number[] clockTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.calendarDate != null ? this.calendarDate.hashCode() : 0); hash = 37 * hash + (this.calendarEraName != null ? this.calendarEraName.hashCode() : 0); hash = 37 * hash + (this.clockTime != null ? this.clockTime.hashCode() : 0); return hash; } DefaultDateAndTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate, Number[] clockTime); Number[] getClockTime(); InternationalString getCalendarEraName(); int[] getCalendarDate(); void setCalendarEraName(InternationalString calendarEraName); void setCalendarDate(int[] calendarDate); void setClockTime(Number[] clockTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }