@Test public void testToString() { String result = ordinalEra1.toString(); assertFalse(ordinalEra2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("OrdinalEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (beginning != null) { s.append("beginning:").append(beginning).append('\n'); } if (end != null) { s.append("end:").append(end).append('\n'); } if (composition != null) { s.append("composition:").append(composition).append('\n'); } if (group != null) { s.append("group:").append(group).append('\n'); } return s.toString(); }
DefaultOrdinalEra implements OrdinalEra { @Override public String toString() { StringBuilder s = new StringBuilder("OrdinalEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (beginning != null) { s.append("beginning:").append(beginning).append('\n'); } if (end != null) { s.append("end:").append(end).append('\n'); } if (composition != null) { s.append("composition:").append(composition).append('\n'); } if (group != null) { s.append("group:").append(group).append('\n'); } return s.toString(); } }
DefaultOrdinalEra implements OrdinalEra { @Override public String toString() { StringBuilder s = new StringBuilder("OrdinalEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (beginning != null) { s.append("beginning:").append(beginning).append('\n'); } if (end != null) { s.append("end:").append(end).append('\n'); } if (composition != null) { s.append("composition:").append(composition).append('\n'); } if (group != null) { s.append("group:").append(group).append('\n'); } return s.toString(); } DefaultOrdinalEra(InternationalString name, Date beginning, Date end);  DefaultOrdinalEra(InternationalString name, Date beginning, Date end, Collection<OrdinalEra> composition); }
DefaultOrdinalEra implements OrdinalEra { @Override public String toString() { StringBuilder s = new StringBuilder("OrdinalEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (beginning != null) { s.append("beginning:").append(beginning).append('\n'); } if (end != null) { s.append("end:").append(end).append('\n'); } if (composition != null) { s.append("composition:").append(composition).append('\n'); } if (group != null) { s.append("group:").append(group).append('\n'); } return s.toString(); } DefaultOrdinalEra(InternationalString name, Date beginning, Date end);  DefaultOrdinalEra(InternationalString name, Date beginning, Date end, Collection<OrdinalEra> composition); InternationalString getName(); Date getBeginning(); Date getEnd(); Collection<OrdinalEra> getComposition(); void setName(InternationalString name); void setBeginning(Date beginning); void setEnd(Date end); DefaultOrdinalEra getGroup(); void setGroup(DefaultOrdinalEra group); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultOrdinalEra implements OrdinalEra { @Override public String toString() { StringBuilder s = new StringBuilder("OrdinalEra:").append('\n'); if (name != null) { s.append("name:").append(name).append('\n'); } if (beginning != null) { s.append("beginning:").append(beginning).append('\n'); } if (end != null) { s.append("end:").append(end).append('\n'); } if (composition != null) { s.append("composition:").append(composition).append('\n'); } if (group != null) { s.append("group:").append(group).append('\n'); } return s.toString(); } DefaultOrdinalEra(InternationalString name, Date beginning, Date end);  DefaultOrdinalEra(InternationalString name, Date beginning, Date end, Collection<OrdinalEra> composition); InternationalString getName(); Date getBeginning(); Date getEnd(); Collection<OrdinalEra> getComposition(); void setName(InternationalString name); void setBeginning(Date beginning); void setEnd(Date end); DefaultOrdinalEra getGroup(); void setGroup(DefaultOrdinalEra group); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }