Class Filters
java.lang.Object
org.apache.jackrabbit.oak.plugins.observation.filter.Filters
This utility class provides common
EventFilter
instances-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull EventFilter
all
(@NotNull List<EventFilter> filters) A filter that matches if and only if all of the filters passed to this method matches.static @NotNull EventFilter
all
(@NotNull EventFilter... filters) A filter that matches if and only if all of the filters passed to this method matches.static @NotNull EventFilter
any
(@NotNull List<EventFilter> filters) A filter that matches if and only if any of the filters passed to this method matches.static @NotNull EventFilter
any
(@NotNull EventFilter... filters) A filter that matches if and only if any of the filters passed to this method matches.static @NotNull EventFilter
static @NotNull EventFilter
static @NotNull EventFilter
not
(@NotNull EventFilter filter) A filter that matches if and only if any the filter passed to this method does not match.
-
Method Details
-
not
A filter that matches if and only if any the filter passed to this method does not match.- Parameters:
filter
- filter which must not match- Returns:
true
iffilter
does not match.
-
any
A filter that matches if and only if any of the filters passed to this method matches.- Parameters:
filters
- filters of which any must match- Returns:
true
if any offilters
match.
-
all
A filter that matches if and only if all of the filters passed to this method matches.- Parameters:
filters
- filters of which all must match- Returns:
true
if all offilters
match.
-
includeAll
- Returns:
- Filter that includes everything
-
excludeAll
- Returns:
- Filter that excludes everything
-
any
A filter that matches if and only if any of the filters passed to this method matches.- Parameters:
filters
- filters of which any must match- Returns:
true
if any offilters
match.
-
all
A filter that matches if and only if all of the filters passed to this method matches.- Parameters:
filters
- filters of which all must match- Returns:
true
if all offilters
match.
-