|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.ical4j.filter.Filter
public class Filter
Performs collection filtering based on a set of rules. A filter may dictate whether at least one rule or all rules are matched.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Filter(Rule rule)
Constructor. |
|
Filter(Rule[] rules,
int type)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MATCH_ANY
public static final int MATCH_ALL
| Constructor Detail |
|---|
public Filter(Rule rule)
rule - a rule that defines this filter
public Filter(Rule[] rules,
int type)
rules - an array of rules that define this filter| Method Detail |
|---|
public final java.util.Collection filter(java.util.Collection c)
c - a collection to filter
public final java.lang.Object[] filter(java.lang.Object[] objects)
objects - an array to filter
public final Rule[] getRules()
public final void setRules(Rule[] rules)
rules - The rules to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||