GeoLocationPointList extends AbstractGeoLocation { @Override @SuppressWarnings("checkstyle:equalshashcode") @Pure public int hashCode() { if (this.hash == -1) { this.hash = Arrays.hashCode(this.pts); } return this.hash; } GeoLocationPointList(double... points); @Override @Pure GeoId toGeoId(); @Override @SuppressWarnings("checkstyle:equalshashcode") @Pure int hashCode(); @Pure int size(); @Pure float getX(int index); @Pure float getY(int index); @Override @Pure Rectangle2d toBounds2D(); @Override @Pure 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); }