net.fortuna.ical4j.filter
public class Filter extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MATCH_ALL
Indicates that all rules must be matched to include an object in the filtered collection.
|
static int |
MATCH_ANY
Indicates that any rule may be matched to include an object in the filtered collection.
|
| Constructor and Description |
|---|
Filter(Rule rule)
Deprecated.
Prior implementations of this class did not work as advertised, so
to avoid confusion please use constructors that explicitly specify the desired behaviour
|
Filter(Rule[] rules,
int type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
filter(java.util.Collection c)
Filter the given collection into a new collection.
|
java.lang.Object[] |
filter(java.lang.Object[] objects)
Returns a filtered subset of the specified array.
|
Rule[] |
getRules() |
void |
setRules(Rule[] rules) |
public static final int MATCH_ANY
public static final int MATCH_ALL
public Filter(Rule rule)
rule - a rule that defines this filterpublic final java.util.Collection filter(java.util.Collection c)
c - a collection to filterpublic final java.lang.Object[] filter(java.lang.Object[] objects)
objects - an array to filterpublic final Rule[] getRules()
public final void setRules(Rule[] rules)
rules - The rules to set.Copyright © 2004-2014 Micronode. All Rights Reserved.