|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Predicate<T>
Determines a true or false value for a given input and additionally
serves as a factory for creating compound Predicate
s like and and or.
Method Summary | |
---|---|
Predicate<T> |
and(Collection<Predicate<T>> predicates)
Create a new Predicate whose result is the logical "and" of this predicate
and the provided predicates. |
Predicate<T> |
and(Predicate<T>... predicates)
Create a new Predicate whose result is the logical "and" of this
and the provided predicates. |
double |
getCost()
The cost of applying the predicate. |
Predicate<T> |
or(Collection<Predicate<T>> predicates)
Create a new Predicate whose result is the logical "or" of this predicate
and the provided predicates. |
Predicate<T> |
or(Predicate<T>... predicates)
Create a new Predicate whose result is the logical "or" of this predicate
and the provided predicates. |
Methods inherited from interface com.google.common.base.Predicate |
---|
apply, equals |
Method Detail |
---|
Predicate<T> and(Predicate<T>... predicates)
Predicate
whose result is the logical "and" of this
and the provided predicates.
predicates
- The Predicate
s to combined with this Predicate
Predicate<T> and(Collection<Predicate<T>> predicates)
Predicate
whose result is the logical "and" of this predicate
and the provided predicates.
predicates
- The Predicate
s to conbined with this Predicate
Predicate<T> or(Predicate<T>... predicates)
Predicate
whose result is the logical "or" of this predicate
and the provided predicates.
predicates
- The Predicate
s to conbined with this Predicate
Predicate<T> or(Collection<Predicate<T>> predicates)
Predicate
whose result is the logical "or" of this predicate
and the provided predicates.
predicates
- The Predicate
s to conbined with this Predicate
double getCost()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |