@Test public void testGetRightNeighbour() { OSMTileIdentifier neighbour = new OSMTileIdentifier(11, 12, new WebMercatorZoomLevel(5), "SomeService"); Assert.assertEquals(neighbour, this.tileId.getRightNeighbour()); }
public TileIdentifier getRightNeighbour() { return new OSMTileIdentifier( TileIdentifier.arithmeticMod((getX() + 1), getZoomLevel().getMaxTilePerRowNumber()), getY(), getZoomLevel(), getServiceName()); }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getRightNeighbour() { return new OSMTileIdentifier( TileIdentifier.arithmeticMod((getX() + 1), getZoomLevel().getMaxTilePerRowNumber()), getY(), getZoomLevel(), getServiceName()); } }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getRightNeighbour() { return new OSMTileIdentifier( TileIdentifier.arithmeticMod((getX() + 1), getZoomLevel().getMaxTilePerRowNumber()), getY(), getZoomLevel(), getServiceName()); } OSMTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getRightNeighbour() { return new OSMTileIdentifier( TileIdentifier.arithmeticMod((getX() + 1), getZoomLevel().getMaxTilePerRowNumber()), getY(), getZoomLevel(), getServiceName()); } OSMTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); @Override String getId(); @Override String getCode(); TileIdentifier getRightNeighbour(); TileIdentifier getLowerNeighbour(); }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getRightNeighbour() { return new OSMTileIdentifier( TileIdentifier.arithmeticMod((getX() + 1), getZoomLevel().getMaxTilePerRowNumber()), getY(), getZoomLevel(), getServiceName()); } OSMTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); @Override String getId(); @Override String getCode(); TileIdentifier getRightNeighbour(); TileIdentifier getLowerNeighbour();  }