GeoLocationPointList extends AbstractGeoLocation { @Pure float[] toArray() { return this.pts; } 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 testToArray() { assertEpsilonArrayEquals(this.coords11, this.location11.toArray()); assertEpsilonArrayEquals(reverse(this.coords12), this.location12.toArray()); assertEpsilonArrayEquals(this.coords13, this.location13.toArray()); assertEpsilonArrayEquals(this.coords21, this.location21.toArray()); assertEpsilonArrayEquals(reverse(this.coords22), this.location22.toArray()); assertEpsilonArrayEquals(this.coords23, this.location23.toArray()); }