Modifier and Type | Method and Description |
---|---|
static <S> FilterFn<S> |
ACCEPT_ALL()
Accept everything.
|
static <S> FilterFn<S> |
and(FilterFn<S>... fns)
Accept an entry if all of the given filters accept it, using short-circuit evaluation.
|
static <S> FilterFn<S> |
and(FilterFn<S> fn1,
FilterFn<S> fn2)
Accept an entry if all of the given filters accept it, using short-circuit evaluation.
|
static <S> FilterFn<S> |
not(FilterFn<S> fn)
Accept an entry if the given filter does not accept it.
|
static <S> FilterFn<S> |
or(FilterFn<S>... fns)
Accept an entry if at least one of the given filters accept it, using short-circuit evaluation.
|
static <S> FilterFn<S> |
or(FilterFn<S> fn1,
FilterFn<S> fn2)
Accept an entry if at least one of the given filters accept it, using short-circuit evaluation.
|
static <S> FilterFn<S> |
REJECT_ALL()
Reject everything.
|
public static <S> FilterFn<S> and(FilterFn<S> fn1, FilterFn<S> fn2)
fn1
- The first functions to delegate tofn2
- The second functions to delegate topublic static <S> FilterFn<S> and(FilterFn<S>... fns)
fns
- The functions to delegate to (in the given order)public static <S> FilterFn<S> or(FilterFn<S> fn1, FilterFn<S> fn2)
fn1
- The first functions to delegate tofn2
- The second functions to delegate topublic static <S> FilterFn<S> or(FilterFn<S>... fns)
fns
- The functions to delegate to (in the given order)public static <S> FilterFn<S> not(FilterFn<S> fn)
fn
- The function to delegate topublic static <S> FilterFn<S> ACCEPT_ALL()
public static <S> FilterFn<S> REJECT_ALL()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.