@Test public void testToString() throws IOException { List<OSHNode> hosmNodes = new ArrayList<>(); for (int i = 0; i < 3; i++) { List<OSMNode> versions = new ArrayList<>(); versions.add(new OSMNode(123l + 10 * i, 1, new OSHDBTimestamp(123001l + 10 * i), 0l, 123, new int[] {}, 86809727l - 1000000 * i, 494094984l - 1000000 * i)); versions.add(new OSMNode(123l + 10 * i, 2, new OSHDBTimestamp(123002l + 10 * i), 0l, 123, new int[] {}, 86809727l - 1000000 * i, 494094984l - 1000000 * i)); hosmNodes.add(OSHNodeImpl.build(versions)); } GridOSHNodes instance = GridOSHNodes.rebase(2, 2, 100, 100000l, 86000000, 490000000, hosmNodes); String expResult = "Grid-Cell of OSHNodes ID:2 Level:2 BBox:(-90.000000,0.000000),(-0.000000,90.000000)"; String result = instance.toString(); assertEquals(expResult, result); }
@Override public String toString() { return String.format("Grid-Cell of OSHNodes %s", super.toString()); }
GridOSHNodes extends GridOSHEntity implements Iterable<OSHNode> { @Override public String toString() { return String.format("Grid-Cell of OSHNodes %s", super.toString()); } }
GridOSHNodes extends GridOSHEntity implements Iterable<OSHNode> { @Override public String toString() { return String.format("Grid-Cell of OSHNodes %s", super.toString()); } private  GridOSHNodes(final long id, final int level, final long baseId, final long baseTimestamp,
          final long baseLongitude, final long baseLatitude, final int[] index, final byte[] data); }
GridOSHNodes extends GridOSHEntity implements Iterable<OSHNode> { @Override public String toString() { return String.format("Grid-Cell of OSHNodes %s", super.toString()); } private  GridOSHNodes(final long id, final int level, final long baseId, final long baseTimestamp,
          final long baseLongitude, final long baseLatitude, final int[] index, final byte[] data); static GridOSHNodes rebase(final long id, final int level, final long baseId,
          final long baseTimestamp, final long baseLongitude, final long baseLatitude,
          final List<OSHNode> list); @Override Iterable<? extends OSHEntity> getEntities(); @Override Iterator<OSHNode> iterator(); @Override String toString(); }
GridOSHNodes extends GridOSHEntity implements Iterable<OSHNode> { @Override public String toString() { return String.format("Grid-Cell of OSHNodes %s", super.toString()); } private  GridOSHNodes(final long id, final int level, final long baseId, final long baseTimestamp,
          final long baseLongitude, final long baseLatitude, final int[] index, final byte[] data); static GridOSHNodes rebase(final long id, final int level, final long baseId,
          final long baseTimestamp, final long baseLongitude, final long baseLatitude,
          final List<OSHNode> list); @Override Iterable<? extends OSHEntity> getEntities(); @Override Iterator<OSHNode> iterator(); @Override String toString();  }