T
- the input type of the predicatespublic class Or<T> extends Object implements Predicate<T>
Constructor and Description |
---|
Or()
Construct an empty "or"
|
Or(List<Predicate<T>> predicates)
Construct with the given predicates
|
Or(Predicate<T> p1,
Predicate<T> p2)
Construct with the given predicates
|
Or(Predicate<T> p1,
Predicate<T> p2,
Predicate<T> p3)
Construct with the given predicates
|
Modifier and Type | Method and Description |
---|---|
Or<T> |
add(Predicate<T> p)
Add a new predicate to this "or"
|
boolean |
test(T object)
Tests whether a specific object passes some criteria.
|
public Or()
public Or(Predicate<T> p1, Predicate<T> p2)
p1
- first predicatep2
- second predicatepublic Or(Predicate<T> p1, Predicate<T> p2, Predicate<T> p3)
p1
- first predicatep2
- second predicatep3
- third predicate