|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A binary predicate represents a arbitrary operation on two objects and returns as result of this operation a boolean value.
The implementing classes have to ensure two things:
ClassCastException
is thrown, if they can't operate
on the given object
null
as value
BinaryFunction
Field Summary | |
static BinaryPredicate |
ALWAYS_FALSE
Instance of a BinaryPredicate which is
always returns false . |
static BinaryPredicate |
ALWAYS_TRUE
Instance of a BinaryPredicate which is
always returns true . |
Method Summary | |
boolean |
exec(java.lang.Object pFirst,
java.lang.Object pSecond)
Executes the implemented operation on both given objects and returns a boolean value as the result of the operation. |
Field Detail |
public static final BinaryPredicate ALWAYS_FALSE
BinaryPredicate
which is
always returns false
.
public static final BinaryPredicate ALWAYS_TRUE
BinaryPredicate
which is
always returns true
.
Method Detail |
public boolean exec(java.lang.Object pFirst, java.lang.Object pSecond)
java.lang.ClassCastException
- if the implementing
class can not operate on the given object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |