@Test public void testGetLowertNeighbour() { OSMTileIdentifier neighbour = new OSMTileIdentifier(10, 13, new WebMercatorZoomLevel(5), "SomeService"); Assert.assertEquals(neighbour, this.tileId.getLowerNeighbour()); }
public TileIdentifier getLowerNeighbour() { return new OSMTileIdentifier( getX(), TileIdentifier.arithmeticMod((getY() + 1), getZoomLevel().getMaxTilePerRowNumber()), getZoomLevel(), getServiceName()); }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getLowerNeighbour() { return new OSMTileIdentifier( getX(), TileIdentifier.arithmeticMod((getY() + 1), getZoomLevel().getMaxTilePerRowNumber()), getZoomLevel(), getServiceName()); } }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getLowerNeighbour() { return new OSMTileIdentifier( getX(), TileIdentifier.arithmeticMod((getY() + 1), getZoomLevel().getMaxTilePerRowNumber()), getZoomLevel(), getServiceName()); } OSMTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); }
OSMTileIdentifier extends TileIdentifier { public TileIdentifier getLowerNeighbour() { return new OSMTileIdentifier( getX(), TileIdentifier.arithmeticMod((getY() + 1), getZoomLevel().getMaxTilePerRowNumber()), 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 getLowerNeighbour() { return new OSMTileIdentifier( getX(), TileIdentifier.arithmeticMod((getY() + 1), getZoomLevel().getMaxTilePerRowNumber()), getZoomLevel(), getServiceName()); } OSMTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); @Override String getId(); @Override String getCode(); TileIdentifier getRightNeighbour(); TileIdentifier getLowerNeighbour();  }