@Test public void testToString() { String result = calendarEra1.toString(); assertFalse(calendarEra2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("CalendarEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (epochOfUse != null) { s.append("epochOfUse:").append(epochOfUse).append('\n'); } if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceDate != null) { s.append("referenceDate:").append(referenceDate).append('\n'); } if (julianReference != null) { s.append("julianReference:").append(julianReference).append('\n'); } if (datingSystem != null) { s.append("datingSystem:").append(datingSystem).append('\n'); } return s.toString(); }
DefaultCalendarEra implements CalendarEra { @Override public String toString() { StringBuilder s = new StringBuilder("CalendarEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (epochOfUse != null) { s.append("epochOfUse:").append(epochOfUse).append('\n'); } if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceDate != null) { s.append("referenceDate:").append(referenceDate).append('\n'); } if (julianReference != null) { s.append("julianReference:").append(julianReference).append('\n'); } if (datingSystem != null) { s.append("datingSystem:").append(datingSystem).append('\n'); } return s.toString(); } }
DefaultCalendarEra implements CalendarEra { @Override public String toString() { StringBuilder s = new StringBuilder("CalendarEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (epochOfUse != null) { s.append("epochOfUse:").append(epochOfUse).append('\n'); } if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceDate != null) { s.append("referenceDate:").append(referenceDate).append('\n'); } if (julianReference != null) { s.append("julianReference:").append(julianReference).append('\n'); } if (datingSystem != null) { s.append("datingSystem:").append(datingSystem).append('\n'); } return s.toString(); } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); }
DefaultCalendarEra implements CalendarEra { @Override public String toString() { StringBuilder s = new StringBuilder("CalendarEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (epochOfUse != null) { s.append("epochOfUse:").append(epochOfUse).append('\n'); } if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceDate != null) { s.append("referenceDate:").append(referenceDate).append('\n'); } if (julianReference != null) { s.append("julianReference:").append(julianReference).append('\n'); } if (datingSystem != null) { s.append("datingSystem:").append(datingSystem).append('\n'); } return s.toString(); } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); InternationalString getName(); InternationalString getReferenceEvent(); CalendarDate getReferenceDate(); JulianDate getJulianReference(); Period getEpochOfUse(); void setName(InternationalString name); void setReferenceEvent(InternationalString referenceEvent); void setReferenceDate(CalendarDate referenceDate); void setJulianReference(JulianDate julianReference); void setEpochOfUse(Period epochOfUse); Collection<Calendar> getDatingSystem(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultCalendarEra implements CalendarEra { @Override public String toString() { StringBuilder s = new StringBuilder("CalendarEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (epochOfUse != null) { s.append("epochOfUse:").append(epochOfUse).append('\n'); } if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceDate != null) { s.append("referenceDate:").append(referenceDate).append('\n'); } if (julianReference != null) { s.append("julianReference:").append(julianReference).append('\n'); } if (datingSystem != null) { s.append("datingSystem:").append(datingSystem).append('\n'); } return s.toString(); } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); InternationalString getName(); InternationalString getReferenceEvent(); CalendarDate getReferenceDate(); JulianDate getJulianReference(); Period getEpochOfUse(); void setName(InternationalString name); void setReferenceEvent(InternationalString referenceEvent); void setReferenceDate(CalendarDate referenceDate); void setJulianReference(JulianDate julianReference); void setEpochOfUse(Period epochOfUse); Collection<Calendar> getDatingSystem(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }