|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xshare.base.predicate.UnaryNorPredicate
A unary predicate represents a 'nor' like conjunction of
two UnaryPredicates
.
UnaryPredicate
Field Summary |
Fields inherited from interface org.xshare.base.predicate.UnaryPredicate |
ALWAYS_FALSE, ALWAYS_TRUE |
Constructor Summary | |
UnaryNorPredicate(UnaryPredicate pFirstPredicate,
UnaryPredicate pSecondPredicate)
Constructs a 'nor' predicate for two UnaryPredicates . |
Method Summary | |
boolean |
exec(java.lang.Object pVictim)
Passes the argument object two both predicates and returns true if both predicates
are 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 UnaryNorPredicate(UnaryPredicate pFirstPredicate, UnaryPredicate pSecondPredicate)
UnaryPredicates
.
pFirstPredicate
- a UnaryPredicate
object
representing the first predicate connected with this instance.pSecondPredicate
- a UnaryPredicate
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 pVictim)
true
if both predicates
are not satisfied by the argument.
exec
in interface UnaryPredicate
pVictim
- an Object
object representing
the argument passed to both predicates.
boolean
value which is true
both predicates are not satisfied by the argument.
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 |