@Test public void testHashCode() { int result = ordinalEra1.hashCode(); assertFalse(ordinalEra2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.beginning != null ? this.beginning.hashCode() : 0); hash = 37 * hash + (this.end != null ? this.end.hashCode() : 0); hash = 37 * hash + (this.composition != null ? this.composition.hashCode() : 0); hash = 37 * hash + (this.group != null ? this.group.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; }
DefaultOrdinalEra implements OrdinalEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.beginning != null ? this.beginning.hashCode() : 0); hash = 37 * hash + (this.end != null ? this.end.hashCode() : 0); hash = 37 * hash + (this.composition != null ? this.composition.hashCode() : 0); hash = 37 * hash + (this.group != null ? this.group.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; } }
DefaultOrdinalEra implements OrdinalEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.beginning != null ? this.beginning.hashCode() : 0); hash = 37 * hash + (this.end != null ? this.end.hashCode() : 0); hash = 37 * hash + (this.composition != null ? this.composition.hashCode() : 0); hash = 37 * hash + (this.group != null ? this.group.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; } DefaultOrdinalEra(InternationalString name, Date beginning, Date end);  DefaultOrdinalEra(InternationalString name, Date beginning, Date end, Collection<OrdinalEra> composition); }
DefaultOrdinalEra implements OrdinalEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.beginning != null ? this.beginning.hashCode() : 0); hash = 37 * hash + (this.end != null ? this.end.hashCode() : 0); hash = 37 * hash + (this.composition != null ? this.composition.hashCode() : 0); hash = 37 * hash + (this.group != null ? this.group.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; } 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 int hashCode() { int hash = 5; hash = 37 * hash + (this.beginning != null ? this.beginning.hashCode() : 0); hash = 37 * hash + (this.end != null ? this.end.hashCode() : 0); hash = 37 * hash + (this.composition != null ? this.composition.hashCode() : 0); hash = 37 * hash + (this.group != null ? this.group.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; } 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();  }