|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xshare.base.predicate.BinaryNandPredicate
A binary predicate represents a 'nand' like conjunction of
two BinaryPredicates
.
BinaryPredicate
Field Summary |
Fields inherited from interface org.xshare.base.predicate.BinaryPredicate |
ALWAYS_FALSE, ALWAYS_TRUE |
Constructor Summary | |
BinaryNandPredicate(BinaryPredicate pFirstPredicate,
BinaryPredicate pSecondPredicate)
Constructs a 'nand' predicate for two BinaryPredicates . |
Method Summary | |
boolean |
exec(java.lang.Object pFirst,
java.lang.Object pSecond)
Passes the two argument objects two both predicates and returns true if at least one predicate
is not satisfied by the argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinaryNandPredicate(BinaryPredicate pFirstPredicate, BinaryPredicate pSecondPredicate)
BinaryPredicates
.
pFirstPredicate
- a BinaryPredicate
object
representing the first predicate connected with this instance.pSecondPredicate
- a BinaryPredicate
object
representing the second predicate connected with this instance.
java.lang.NullPointerException
- if one of both predicates is
null
.Method Detail |
public boolean exec(java.lang.Object pFirst, java.lang.Object pSecond)
true
if at least one predicate
is not satisfied by the argument.
exec
in interface BinaryPredicate
pFirst
- an Object
object representing
the first argument passed to both predicates.pSecond
- an Object
object representing
the second argument passed to both predicates.
boolean
value which is true
at least on predicate is not satisfied by both argument objects.
Otherwise false
is expected as return value.
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 |