GeoLocationPointList extends AbstractGeoLocation { @Pure public float getX(int index) { return this.pts[index * 2]; } 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 testGetX() { for(int i=0; i<this.location11.size(); ++i) { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords11[i*2]), this.location11.getX(i)); } for(int i=0; i<this.location12.size(); ++i) { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords12[this.coords12.length-(i*2)-1]), this.location12.getX(i)); } for(int i=0; i<this.location13.size(); ++i) { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords13[i*2]), this.location13.getX(i)); } for(int i=0; i<this.location21.size(); ++i) { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords21[i*2]), this.location21.getX(i)); } for(int i=0; i<this.location22.size(); ++i) { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords22[this.coords22.length-(i*2)-1]), this.location22.getX(i)); } for(int i=0; i<this.location23.size(); ++i) { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords23[i*2]), this.location23.getX(i)); } }