@Test public void testHashCode() { int result = ordinalReferenceSystem1.hashCode(); assertFalse(ordinalReferenceSystem2.hashCode() == result); }
@Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.ordinalEraSequence != null ? this.ordinalEraSequence.hashCode() : 0); return hash; }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.ordinalEraSequence != null ? this.ordinalEraSequence.hashCode() : 0); return hash; } }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.ordinalEraSequence != null ? this.ordinalEraSequence.hashCode() : 0); return hash; } DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence); }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.ordinalEraSequence != null ? this.ordinalEraSequence.hashCode() : 0); return hash; } DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence); Collection<OrdinalEra> getOrdinalEraSequence(); @Override String toWKT(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.ordinalEraSequence != null ? this.ordinalEraSequence.hashCode() : 0); return hash; } DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence); Collection<OrdinalEra> getOrdinalEraSequence(); @Override String toWKT(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }