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