@Test public void testBbox2CellIds_BoundingBox_boolean() { OSHDBBoundingBox BBOX = new OSHDBBoundingBox(0.0, 0.0, 44.9, 44.9); boolean enlarge = false; XYGridTree instance = new XYGridTree(3); HashSet<CellId> expectedCellIds = new HashSet<>(4); expectedCellIds.add(new CellId(3, 20L)); expectedCellIds.add(new CellId(2, 6L)); expectedCellIds.add(new CellId(1, 1L)); expectedCellIds.add(new CellId(0, 0L)); for (CellId now : instance.bbox2CellIds(BBOX, enlarge)) { assertEquals(true, expectedCellIds.remove(now)); } assertEquals(0, expectedCellIds.size()); }
public Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX) { return bbox2CellIds(BBOX, false); }
XYGridTree implements Serializable { public Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX) { return bbox2CellIds(BBOX, false); } }
XYGridTree implements Serializable { public Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX) { return bbox2CellIds(BBOX, false); } XYGridTree(int maxzoom);  XYGridTree(); }
XYGridTree implements Serializable { public Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX) { return bbox2CellIds(BBOX, false); } XYGridTree(int maxzoom);  XYGridTree(); @SuppressWarnings("Convert2Lambda") Iterable<CellId> getIds(long longitude, long latitude); Iterable<CellId> getIds(double longitude, double latitude); CellId getInsertId(OSHDBBoundingBox bbox); Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX); @SuppressWarnings("Convert2Lambda") Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX, final boolean enlarge); @SuppressWarnings("Convert2Lambda") Iterable<CellIdRange> bbox2CellIdRanges(final OSHDBBoundingBox bbox, final boolean enlarge); }
XYGridTree implements Serializable { public Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX) { return bbox2CellIds(BBOX, false); } XYGridTree(int maxzoom);  XYGridTree(); @SuppressWarnings("Convert2Lambda") Iterable<CellId> getIds(long longitude, long latitude); Iterable<CellId> getIds(double longitude, double latitude); CellId getInsertId(OSHDBBoundingBox bbox); Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX); @SuppressWarnings("Convert2Lambda") Iterable<CellId> bbox2CellIds(final OSHDBBoundingBox BBOX, final boolean enlarge); @SuppressWarnings("Convert2Lambda") Iterable<CellIdRange> bbox2CellIdRanges(final OSHDBBoundingBox bbox, final boolean enlarge);  }