@Test public void testHashCode() { int result = temporalCoordinateSystem1.hashCode(); assertFalse(temporalCoordinateSystem2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.interval != null ? this.interval.hashCode() : 0); hash = 37 * hash + (this.origin != null ? this.origin.hashCode() : 0); return hash; }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.interval != null ? this.interval.hashCode() : 0); hash = 37 * hash + (this.origin != null ? this.origin.hashCode() : 0); return hash; } }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.interval != null ? this.interval.hashCode() : 0); hash = 37 * hash + (this.origin != null ? this.origin.hashCode() : 0); return hash; } DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval); }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.interval != null ? this.interval.hashCode() : 0); hash = 37 * hash + (this.origin != null ? this.origin.hashCode() : 0); return hash; } DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval); void setOrigin(Date origin); void setInterval(InternationalString interval); Date getOrigin(); InternationalString getInterval(); Date transformCoord(TemporalCoordinate c_value); TemporalCoordinate transformDateTime(Date dateTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.interval != null ? this.interval.hashCode() : 0); hash = 37 * hash + (this.origin != null ? this.origin.hashCode() : 0); return hash; } DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval); void setOrigin(Date origin); void setInterval(InternationalString interval); Date getOrigin(); InternationalString getInterval(); Date transformCoord(TemporalCoordinate c_value); TemporalCoordinate transformDateTime(Date dateTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }