@Test public void testToString() throws IOException { List<OSHWay> hosmWays = new ArrayList<>(); for (int i = 0; i < 3; i++) { List<OSMWay> versions = new ArrayList<>(); versions.add( new OSMWay(123, 1, new OSHDBTimestamp(3333l), 4444l, 23, new int[]{1, 1, 2, 1}, new OSMMember[]{new OSMMember(102, OSMType.NODE, 0), new OSMMember(104, OSMType.NODE, 0)})); versions.add( new OSMWay(123, 3, new OSHDBTimestamp(3333l), 4444l, 23, new int[]{1, 1, 2, 2}, new OSMMember[]{new OSMMember(100, OSMType.NODE, 0), new OSMMember(104, OSMType.NODE, 0)})); hosmWays.add(OSHWayImpl.build(versions, Arrays.asList(node100, node102, node104))); } GridOSHWays instance = GridOSHWays.compact(2, 2, 100, 100000l, 86000000, 490000000, hosmWays); String expResult = "Grid-Cell of OSHWays 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 OSHWays %s", super.toString()); }
GridOSHWays extends GridOSHEntity implements Iterable<OSHWay> { @Override public String toString() { return String.format("Grid-Cell of OSHWays %s", super.toString()); } }
GridOSHWays extends GridOSHEntity implements Iterable<OSHWay> { @Override public String toString() { return String.format("Grid-Cell of OSHWays %s", super.toString()); } GridOSHWays(final long id, final int level, final long baseId, final long baseTimestamp,
          final long baseLongitude, final long baseLatitude, final int[] index, final byte[] data); }
GridOSHWays extends GridOSHEntity implements Iterable<OSHWay> { @Override public String toString() { return String.format("Grid-Cell of OSHWays %s", super.toString()); } GridOSHWays(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 GridOSHWays compact(final long id, final int level, final long baseId, final long baseTimestamp,
          final long baseLongitude, final long baseLatitude, final List<OSHWay> list); @Override Iterable<? extends OSHEntity> getEntities(); @Override Iterator<OSHWay> iterator(); @Override String toString(); }
GridOSHWays extends GridOSHEntity implements Iterable<OSHWay> { @Override public String toString() { return String.format("Grid-Cell of OSHWays %s", super.toString()); } GridOSHWays(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 GridOSHWays compact(final long id, final int level, final long baseId, final long baseTimestamp,
          final long baseLongitude, final long baseLatitude, final List<OSHWay> list); @Override Iterable<? extends OSHEntity> getEntities(); @Override Iterator<OSHWay> iterator(); @Override String toString();  }