@Test public void testEquals() { assertFalse(calendarDate1.equals(null)); assertEquals(calendarDate1, calendarDate1); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendarDate && super.equals(object)) { final DefaultCalendarDate that = (DefaultCalendarDate) object; return Utilities.equals(this.calendarDate, that.calendarDate) && Utilities.equals(this.calendarEraName, that.calendarEraName); } return false; }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendarDate && super.equals(object)) { final DefaultCalendarDate that = (DefaultCalendarDate) object; return Utilities.equals(this.calendarDate, that.calendarDate) && Utilities.equals(this.calendarEraName, that.calendarEraName); } return false; } }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendarDate && super.equals(object)) { final DefaultCalendarDate that = (DefaultCalendarDate) object; return Utilities.equals(this.calendarDate, that.calendarDate) && Utilities.equals(this.calendarEraName, that.calendarEraName); } return false; } DefaultCalendarDate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate); }
DefaultCalendarDate extends DefaultTemporalPosition implements CalendarDate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendarDate && super.equals(object)) { final DefaultCalendarDate that = (DefaultCalendarDate) object; return Utilities.equals(this.calendarDate, that.calendarDate) && Utilities.equals(this.calendarEraName, that.calendarEraName); } return false; } 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 boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendarDate && super.equals(object)) { final DefaultCalendarDate that = (DefaultCalendarDate) object; return Utilities.equals(this.calendarDate, that.calendarDate) && Utilities.equals(this.calendarEraName, that.calendarEraName); } return false; } 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();  }