|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.filters.FilterOr<E>
public class FilterOr<E>
A filter representing the disjunction (i.e. "or") of the supplied filters. The filters are evaluated in the order they are provided (left-to-right) and are evaluated if and only if no previous filters passed.
| Constructor Summary | |
|---|---|
FilterOr(Filter<? super E> a,
Filter<? super E> b)
Construct a filter representing the disjunction (i.e. |
|
| Method Summary | ||
|---|---|---|
boolean |
accept(E test)
Returns true if the Filter accepts the parameter and false otherwise |
|
static
|
get(Filter<? super E> a,
Filter<? super E> b)
Returns the disjunction (i.e. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilterOr(Filter<? super E> a,
Filter<? super E> b)
a - filter to apply firstb - filter to apply second| Method Detail |
|---|
public boolean accept(E test)
Filtertrue if the Filter accepts the parameter and false otherwise
accept in interface Filter<E>test - value to test
true if the filter accepts test; false otherwisepublic java.lang.String toString()
toString in class java.lang.Object
public static <E> FilterOr<E> get(Filter<? super E> a,
Filter<? super E> b)
a - filter to apply firstb - filter to apply second
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||