@Test public void testHashCode() { int result = calendarDate1.hashCode(); assertFalse(calendarDate2.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); return hash; }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @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); return hash; } }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @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); return hash; } DefaultCalendarDate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate); }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @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); return hash; } DefaultCalendarDate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate); InternationalString getCalendarEraName(); int[] getCalendarDate(); void setCalendarEraName(InternationalString calendarEraName); void setCalendarDate(int[] calendarDate); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @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); return hash; } DefaultCalendarDate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate); InternationalString getCalendarEraName(); int[] getCalendarDate(); void setCalendarEraName(InternationalString calendarEraName); void setCalendarDate(int[] calendarDate); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }