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