/** * Convenience implementation that just wraps this collection into a {@link * FilteringFeatureCollection}. Subclasses might want to override this in case the filter can be * cascaded to their data sources. * * @param filter * @return */ public FeatureCollection<T, F> subCollection(Filter filter) { if (filter == Filter.INCLUDE) { return this; } return new FilteringFeatureCollection<T, F>(this, filter); } /**
new FilteringFeatureCollection<T, F>(collection, writeQuery.getFilter()); if (filtered.size() < collection.size()) { String typeName = getSchema().getName().getLocalPart(); if (policy.response == Response.CHALLENGE) {
public boolean containsAll(Collection<?> c) { for (Iterator<?> i = c.iterator(); i.hasNext(); ) { if (!contains(i.next())) { return false; } } return true; }
public boolean isEmpty() { return size() == 0; }
public <O> O[] toArray(O[] a) { List<F> list = new ArrayList<F>(); FeatureIterator<F> i = features(); try { while (i.hasNext()) { list.add(i.next()); } return list.toArray(a); } finally { i.close(); } }
public boolean addAll(Collection c) { boolean changed = false; for ( Iterator<F> i = c.iterator(); i.hasNext(); ) { changed = changed | add( i.next() ); } return changed; }
public boolean isEmpty() { return size() == 0; }
public int size() { int count = 0; FeatureIterator<F> i = features(); try { while (i.hasNext()) { count++; i.next(); } return count; } finally { i.close(); } }
public boolean addAll(Collection c) { boolean changed = false; for ( Iterator i = c.iterator(); i.hasNext(); ) { changed = changed | add( i.next() ); } return changed; }
/** * Creates a new instance of FilteringIteration * * @param filter DOCUMENT ME! * @param collection DOCUMENT ME! */ public FilteringIteration( org.opengis.filter.Filter filter, FeatureCollection<?, ?> collection) { super(new FilterHandler(filter), new FilteringFeatureCollection(collection, filter)); }
public boolean isEmpty() { return size() == 0; }