@Test public void testCollectNone() { GeometryCollector collector = new GeometryCollector(); GeometryCollection result = collector.collect(); assertNotNull(result); assertTrue(result.isEmpty()); }
public GeometryCollection collect() { GeometryCollection gc = collectInternal(); if (srid > 0) { gc.setSRID(srid); } if (crs != null) { gc.setUserData(crs); } return gc; }
GeometryCollector { public GeometryCollection collect() { GeometryCollection gc = collectInternal(); if (srid > 0) { gc.setSRID(srid); } if (crs != null) { gc.setUserData(crs); } return gc; } }
GeometryCollector { public GeometryCollection collect() { GeometryCollection gc = collectInternal(); if (srid > 0) { gc.setSRID(srid); } if (crs != null) { gc.setUserData(crs); } return gc; }  }
GeometryCollector { public GeometryCollection collect() { GeometryCollection gc = collectInternal(); if (srid > 0) { gc.setSRID(srid); } if (crs != null) { gc.setUserData(crs); } return gc; }  long getMaxCoordinates(); void setMaxCoordinates(long maxCoordinates); GeometryFactory getFactory(); void setFactory(GeometryFactory factory); GeometryCollection collect(); GeometryCollection collectInternal(); void add(Geometry g); }
GeometryCollector { public GeometryCollection collect() { GeometryCollection gc = collectInternal(); if (srid > 0) { gc.setSRID(srid); } if (crs != null) { gc.setUserData(crs); } return gc; }  long getMaxCoordinates(); void setMaxCoordinates(long maxCoordinates); GeometryFactory getFactory(); void setFactory(GeometryFactory factory); GeometryCollection collect(); GeometryCollection collectInternal(); void add(Geometry g);  }