@Test public void getBounds() { createPointFeaturesAtCorners(WORLD); ReferencedEnvelope bounds = featureCollection.getBounds(); assertTrue(WORLD.boundsEquals2D(bounds, TOL)); assertEquals(DEFAULT_CRS, bounds.getCoordinateReferenceSystem()); }
@Override public synchronized ReferencedEnvelope getBounds() { if (bounds == null) { bounds = calculateBounds(); } return bounds; }
ListFeatureCollection extends AbstractFeatureCollection implements Collection<SimpleFeature> { @Override public synchronized ReferencedEnvelope getBounds() { if (bounds == null) { bounds = calculateBounds(); } return bounds; } }
ListFeatureCollection extends AbstractFeatureCollection implements Collection<SimpleFeature> { @Override public synchronized ReferencedEnvelope getBounds() { if (bounds == null) { bounds = calculateBounds(); } return bounds; } ListFeatureCollection(SimpleFeatureType schema);  ListFeatureCollection(SimpleFeatureType schema, List<SimpleFeature> list);  ListFeatureCollection(SimpleFeatureType schema, SimpleFeature array[]);  ListFeatureCollection(SimpleFeatureCollection copy); }
ListFeatureCollection extends AbstractFeatureCollection implements Collection<SimpleFeature> { @Override public synchronized ReferencedEnvelope getBounds() { if (bounds == null) { bounds = calculateBounds(); } return bounds; } ListFeatureCollection(SimpleFeatureType schema);  ListFeatureCollection(SimpleFeatureType schema, List<SimpleFeature> list);  ListFeatureCollection(SimpleFeatureType schema, SimpleFeature array[]);  ListFeatureCollection(SimpleFeatureCollection copy); @Override int size(); @Override boolean add(SimpleFeature f); @Override void clear(); @Override SimpleFeatureIterator features(); @Override synchronized ReferencedEnvelope getBounds(); @Override boolean isEmpty(); @Override SimpleFeatureCollection subCollection(Filter filter); @Override SimpleFeatureCollection sort(SortBy order); @Override boolean remove(Object o); @Override boolean addAll(Collection<? extends SimpleFeature> c); @Override boolean removeAll(Collection<?> c); @Override boolean retainAll(Collection<?> c); }
ListFeatureCollection extends AbstractFeatureCollection implements Collection<SimpleFeature> { @Override public synchronized ReferencedEnvelope getBounds() { if (bounds == null) { bounds = calculateBounds(); } return bounds; } ListFeatureCollection(SimpleFeatureType schema);  ListFeatureCollection(SimpleFeatureType schema, List<SimpleFeature> list);  ListFeatureCollection(SimpleFeatureType schema, SimpleFeature array[]);  ListFeatureCollection(SimpleFeatureCollection copy); @Override int size(); @Override boolean add(SimpleFeature f); @Override void clear(); @Override SimpleFeatureIterator features(); @Override synchronized ReferencedEnvelope getBounds(); @Override boolean isEmpty(); @Override SimpleFeatureCollection subCollection(Filter filter); @Override SimpleFeatureCollection sort(SortBy order); @Override boolean remove(Object o); @Override boolean addAll(Collection<? extends SimpleFeature> c); @Override boolean removeAll(Collection<?> c); @Override boolean retainAll(Collection<?> c);  }