@Test public void testToString() { String result = dateAndTime1.toString(); assertFalse(dateAndTime2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("DateAndTime:").append('\n'); if (calendarEraName != null) { s.append("calendarEraName:").append(calendarEraName).append('\n'); } if (calendarDate != null) { s.append("calendarDate:").append(calendarDate).append('\n'); } if (clockTime != null) { s.append("clockTime:").append(clockTime).append('\n'); } return s.toString(); }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public String toString() { StringBuilder s = new StringBuilder("DateAndTime:").append('\n'); if (calendarEraName != null) { s.append("calendarEraName:").append(calendarEraName).append('\n'); } if (calendarDate != null) { s.append("calendarDate:").append(calendarDate).append('\n'); } if (clockTime != null) { s.append("clockTime:").append(clockTime).append('\n'); } return s.toString(); } }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public String toString() { StringBuilder s = new StringBuilder("DateAndTime:").append('\n'); if (calendarEraName != null) { s.append("calendarEraName:").append(calendarEraName).append('\n'); } if (calendarDate != null) { s.append("calendarDate:").append(calendarDate).append('\n'); } if (clockTime != null) { s.append("clockTime:").append(clockTime).append('\n'); } return s.toString(); } DefaultDateAndTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate, Number[] clockTime); }
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public String toString() { StringBuilder s = new StringBuilder("DateAndTime:").append('\n'); if (calendarEraName != null) { s.append("calendarEraName:").append(calendarEraName).append('\n'); } if (calendarDate != null) { s.append("calendarDate:").append(calendarDate).append('\n'); } if (clockTime != null) { s.append("clockTime:").append(clockTime).append('\n'); } return s.toString(); } 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 String toString() { StringBuilder s = new StringBuilder("DateAndTime:").append('\n'); if (calendarEraName != null) { s.append("calendarEraName:").append(calendarEraName).append('\n'); } if (calendarDate != null) { s.append("calendarDate:").append(calendarDate).append('\n'); } if (clockTime != null) { s.append("clockTime:").append(clockTime).append('\n'); } return s.toString(); } 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();  }