Get schedules filtered by the criteria specified in the passed in filter.

@param filter Limit the items returned. If null, then all items returned.
@return ICollection of items as specified in the filter.
343831
public Collection<Schedule> schedules(ScheduleFilter filter) {
        return get(Schedule.class, (filter != null) ? filter : new ScheduleFilter());
    }
991361
public static BaasResult<List<BaasDocument>> fetchAllSync(String collection, BaasQuery.Criteria filter) {
        BaasBox box = BaasBox.getDefaultChecked();
        if (collection == null) throw new IllegalArgumentException("collection cannot be null");
        Fetch f = new Fetch(box, collection, filter, RequestOptions.DEFAULT, null);
        return box.submitSync(f);
    }
1180858
public static <T> List<T> filtered(Collection<T> data, Filter<T> filter) {
        List<T> list = new ArrayList<>();
        if (!Utils.isEmpty(data)) {
            for (T item : data) {
                if (filter.accept(item)) {
                    list.add(item);
                }
            }
        }
        return list;
    }
265781
private FilterList getFilterList(Filter filters)
    {
        FilterList filterList = null;
        if (filters != null)
        {
            if (FilterList.class.isAssignableFrom(filters.getClass()))
            {
                filterList = (FilterList) filters;
            }
            else
            {
                filterList = new FilterList();
                filterList.addFilter(filters);
            }
        }
        return filterList;
    }
193207
public static cmpaction[] get_filtered(nitro_service service, String filter) throws Exception{
		cmpaction obj = new cmpaction();
		options option = new options();
		option.set_filter(filter);
		cmpaction[] response = (cmpaction[]) obj.getfiltered(service, option);
		return response;
	}
1223666
public Collection<Project> getTargetedBy(ProjectFilter filter) {
        filter = (filter != null) ? filter : new ProjectFilter();

        filter.targets.clear();
        filter.targets.add(this);
        return getInstance().get().projects(filter);
    }
1260096
public static policymap[] get_filtered(nitro_service service, String filter) throws Exception{
		policymap obj = new policymap();
		options option = new options();
		option.set_filter(filter);
		policymap[] response = (policymap[]) obj.getfiltered(service, option);
		return response;
	}
1174771
public Collection<Request> requests(RequestFilter filter) {
        return get(Request.class, (filter != null) ? filter : new RequestFilter());
    }
843484
public NetworkFilter where(Predicate<NetworkMetadata> filter) {
        checkNotNull(filter, "Filter predicate must be not a null");

        this.predicate = this.predicate.and(filter);

        return this;
    }
670590
public Collection<Retrospective> getRetrospectives(
            RetrospectiveFilter filter) {
        filter = (filter == null) ? new RetrospectiveFilter() : filter;

        filter.team.clear();
        filter.team.add(this);
        return getInstance().get().retrospectives(filter);
    }
1270370
public Iterator<InternalFactHandle> iterateFactHandles(org.kie.api.runtime.ObjectFilter filter) {
        return getObjectStore().iterateFactHandles(filter);
    }
997240
public static <T> Collection<T> filter(Collection<T> collection, Filter<T> filter) {
		if (null == collection || null == filter) {
			return collection;
		}

		Collection<T> collection2 = ObjectUtil.clone(collection);
		try {
			collection2.clear();
		} catch (UnsupportedOperationException e) {
			// 克隆后的对象不支持清空，说明为不可变集合对象，使用默认的ArrayList保存结果
			collection2 = new ArrayList<>();
		}

		for (T t : collection) {
			if (filter.accept(t)) {
				collection2.add(t);
			}
		}
		return collection2;
	}
863722
public Collection<Task> tasks(TaskFilter filter) {
        return get(Task.class, (filter != null) ? filter : new TaskFilter());
    }
219088
public List<ESigItem> findItems(ESigFilter filter) {
        List<ESigItem> list = new ArrayList<ESigItem>();
        
        if (filter == null) {
            list.addAll(items);
        } else {
            for (ESigItem item : items) {
                if (filter.matches(item)) {
                    list.add(item);
                }
            }
        }
        
        return list;
    }
290281
public Collection<Iteration> iterations(IterationFilter filter) {
        return get(Iteration.class, (filter != null) ? filter : new IterationFilter());
    }
724095
@SuppressWarnings("unchecked")
    public final Collection<T> filter(final Collection<T> c) {
        if (getRules() != null && getRules().length > 0) {
            // attempt to use the same concrete collection type
            // as is passed in..
            Collection<T> filtered;
            try {
                filtered = c.getClass().newInstance();
            } catch (InstantiationException | IllegalAccessException e) {
                filtered = new ArrayList<T>();
            }

            if (type == MATCH_ALL) {
                filtered.addAll(matchAll(c));
            } else {
                filtered.addAll(matchAny(c));
            }
            return filtered;
        }
        return c;
    }
1365826
public static cmppolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		cmppolicy obj = new cmppolicy();
		options option = new options();
		option.set_filter(filter);
		cmppolicy[] response = (cmppolicy[]) obj.getfiltered(service, option);
		return response;
	}