@Test public void testEquals() { assertFalse(ordinalEra1.equals(null)); assertEquals(ordinalEra1, ordinalEra1); assertFalse(ordinalEra1.equals(ordinalEra2)); }
@Override public boolean equals(final Object object) { if (object instanceof DefaultOrdinalEra) { final DefaultOrdinalEra that = (DefaultOrdinalEra) object; return Utilities.equals(this.beginning, that.beginning) && Utilities.equals(this.end, that.end) && Utilities.equals(this.composition, that.composition) && Utilities.equals(this.group, that.group) && Utilities.equals(this.name, that.name); } return false; }
DefaultOrdinalEra implements OrdinalEra { @Override public boolean equals(final Object object) { if (object instanceof DefaultOrdinalEra) { final DefaultOrdinalEra that = (DefaultOrdinalEra) object; return Utilities.equals(this.beginning, that.beginning) && Utilities.equals(this.end, that.end) && Utilities.equals(this.composition, that.composition) && Utilities.equals(this.group, that.group) && Utilities.equals(this.name, that.name); } return false; } }
DefaultOrdinalEra implements OrdinalEra { @Override public boolean equals(final Object object) { if (object instanceof DefaultOrdinalEra) { final DefaultOrdinalEra that = (DefaultOrdinalEra) object; return Utilities.equals(this.beginning, that.beginning) && Utilities.equals(this.end, that.end) && Utilities.equals(this.composition, that.composition) && Utilities.equals(this.group, that.group) && Utilities.equals(this.name, that.name); } return false; } DefaultOrdinalEra(InternationalString name, Date beginning, Date end);  DefaultOrdinalEra(InternationalString name, Date beginning, Date end, Collection<OrdinalEra> composition); }
DefaultOrdinalEra implements OrdinalEra { @Override public boolean equals(final Object object) { if (object instanceof DefaultOrdinalEra) { final DefaultOrdinalEra that = (DefaultOrdinalEra) object; return Utilities.equals(this.beginning, that.beginning) && Utilities.equals(this.end, that.end) && Utilities.equals(this.composition, that.composition) && Utilities.equals(this.group, that.group) && Utilities.equals(this.name, that.name); } return false; } 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 boolean equals(final Object object) { if (object instanceof DefaultOrdinalEra) { final DefaultOrdinalEra that = (DefaultOrdinalEra) object; return Utilities.equals(this.beginning, that.beginning) && Utilities.equals(this.end, that.end) && Utilities.equals(this.composition, that.composition) && Utilities.equals(this.group, that.group) && Utilities.equals(this.name, that.name); } return false; } 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();  }