GeoLocationPoint extends AbstractGeoLocation { @Override @SuppressWarnings("checkstyle:equalshashcode") @Pure public int hashCode() { return Objects.hash(this.x, this.y); } GeoLocationPoint(double x, double y); @Override @Pure GeoId toGeoId(); @Override @SuppressWarnings("checkstyle:equalshashcode") @Pure int hashCode(); @Pure float getX(); @Pure float getY(); @Pure Point2d getPoint(); @Pure @Override Rectangle2d toBounds2D(); @Pure @Override GeodesicPosition toGeodesicPosition();  }
@Test public void testHashCode() { int geoid11 = this.location11.hashCode(); int geoid12 = this.location12.hashCode(); int geoid13 = this.location13.hashCode(); int geoid21 = this.location21.hashCode(); int geoid22 = this.location22.hashCode(); int geoid23 = this.location23.hashCode(); assertEquals(geoid11, geoid12); assertEquals(geoid12, geoid11); assertNotEquals(geoid11, geoid13); assertNotEquals(geoid12, geoid13); assertNotEquals(geoid13, geoid11); assertNotEquals(geoid13, geoid11); assertEquals(geoid21, geoid22); assertEquals(geoid22, geoid21); assertNotEquals(geoid21, geoid23); assertNotEquals(geoid22, geoid23); assertNotEquals(geoid23, geoid21); assertNotEquals(geoid23, geoid22); }