Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.commons
Class PredicateBase<T>

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.commons.PredicateBase<T>
All Implemented Interfaces:
Predicate<T>
Direct Known Subclasses:
CompositePredicateBase, MessageFilter, RequestFilter

Deprecated. Message Broker Application Block is deprecated. Use setMessageHandler(handler) to handle incoming messages asynchronously.

@Deprecated
public abstract class PredicateBase<T>
extends java.lang.Object
implements Predicate<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

PredicateBase

protected PredicateBase()
Deprecated. 

PredicateBase

protected PredicateBase(boolean isNegated)
Deprecated. 
Creates an instance of predicate.

Parameters:
isNegated - if true the predicate is considered as negated: an analog of the logical 'NOT' operation
Method Detail

isNegated

public boolean isNegated()
Deprecated. 
Negated state of the predicate. If an object is in negated state a logical 'NOT' is applied to all the object's logical operations.

Returns:
if NOT is applied

setNegated

public void setNegated(boolean value)
Deprecated. 
Negated state of the predicate. If an object is in negated state a logical 'NOT' is applied to all the object's logical operations.

Parameters:
value - if NOT is applied

invoke

public boolean invoke(T obj)
Deprecated. 
Evaluates predicate's condition of being true or false. Makes the result inversion in case the predicate is negated.

Specified by:
invoke in interface Predicate<T>
Parameters:
obj - object to be used for checking the predicate condition
Returns:
the true or false of the predicate's condition

evaluate

protected abstract boolean evaluate(T obj)
Deprecated. 
Evaluates predicate's condition on true or false.

Parameters:
obj - object to be used for checking the predicate condition
Returns:
the true or false of the predicate's condition

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.