|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.applicationblocks.commons.PredicateBase<T>
setMessageHandler(handler)
to handle incoming messages asynchronously.
@Deprecated public abstract class PredicateBase<T>
PredicateBase
class is an abstract base class that implements Predicate
interface.
Constructor Summary | |
---|---|
protected |
PredicateBase()
Deprecated. |
protected |
PredicateBase(boolean isNegated)
Deprecated. Creates an instance of predicate. |
Method Summary | |
---|---|
protected abstract boolean |
evaluate(T obj)
Deprecated. Evaluates predicate's condition on true or false. |
boolean |
invoke(T obj)
Deprecated. Evaluates predicate's condition of being true or false. |
boolean |
isNegated()
Deprecated. Negated state of the predicate. |
void |
setNegated(boolean value)
Deprecated. Negated state of the predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PredicateBase()
protected PredicateBase(boolean isNegated)
isNegated
- if true the predicate is considered as negated:
an analog of the logical 'NOT' operationMethod Detail |
---|
public boolean isNegated()
public void setNegated(boolean value)
value
- if NOT is appliedpublic boolean invoke(T obj)
invoke
in interface Predicate<T>
obj
- object to be used for checking the predicate condition
protected abstract boolean evaluate(T obj)
obj
- object to be used for checking the predicate condition
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |