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