public boolean remove(Object o) { // must back project any geometry attributes return delegate.remove(o); }
public boolean remove(Object o) { return collection.remove(o); }
public boolean remove(Object o) { return delegate.remove( o ); }
public boolean remove(Object o) { return delegate.remove(o); }
public boolean remove(Object o) { return delegate.remove( o ); }
public boolean remove(Object o) { return delegate.remove( o ); }
public Object remove( int index ) { String fid = (String) index().get( index ); Feature feature = getFeatureMember( fid ); if( collection.remove( feature ) ) return feature; return null; } public int indexOf( Object o ) {
private void removeFromVectorData(Placemark placemark) { synchronized (vectorDataNode) { vectorDataNode.getFeatureCollection().remove(placemark.getFeature()); } }
@Test public void testManipulatingFeatureCollection() { assertAreEqual(placemarkGroup, pinFeatureCollection); pinFeatureCollection.add(createPinFeature()); assertAreEqual(placemarkGroup, pinFeatureCollection); final SimpleFeature simpleFeature = createPinFeature(); pinFeatureCollection.add(simpleFeature); assertAreEqual(placemarkGroup, pinFeatureCollection); pinFeatureCollection.add(createPinFeature()); assertAreEqual(placemarkGroup, pinFeatureCollection); pinFeatureCollection.remove(simpleFeature); assertAreEqual(placemarkGroup, pinFeatureCollection); pinFeatureCollection.add(createPinFeature()); assertAreEqual(placemarkGroup, pinFeatureCollection); }