@Test public void testSetXYWithChangingValues() { final NicGeoPoint nicGeoPoint = new NicGeoPointImpl(0, 0); nicGeoPoint.setXY(1234000, 4321000); final int expectedLatitude = 38816025; final int expectedLongitude = 14208363; assertEquals(expectedLatitude, nicGeoPoint.getLatitudeE6()); assertEquals(expectedLongitude, nicGeoPoint.getLongitudeE6()); }
@Override public void setXY(final double x, final double y) { setY(y); setX(x); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public void setXY(final double x, final double y) { setY(y); setX(x); } }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public void setXY(final double x, final double y) { setY(y); setX(x); } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public void setXY(final double x, final double y) { setY(y); setX(x); } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); @Override double getX(); @Override double getY(); @Override void setXY(final double x, final double y); @Override double calculateDistanceTo(final NicGeoPoint point); @Override double getDivergence(); @Override void setDivergence(double divergence); @Override boolean equals(final Object o); @Override int hashCode(); @Override int compareTo(NicGeoPoint other); @Override String toString(); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public void setXY(final double x, final double y) { setY(y); setX(x); } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); @Override double getX(); @Override double getY(); @Override void setXY(final double x, final double y); @Override double calculateDistanceTo(final NicGeoPoint point); @Override double getDivergence(); @Override void setDivergence(double divergence); @Override boolean equals(final Object o); @Override int hashCode(); @Override int compareTo(NicGeoPoint other); @Override String toString();  }