Package wt.rule.algorithm
Class EqualsTest
java.lang.Object
wt.rule.algorithm.EqualsTest
- All Implemented Interfaces:
RuleAlgorithm
two objects, determine the equality. Object to Object comparison. The difference here is we would like to have the
EqualsTest that doesn't force construction of transient String objects when comparing its arguments.
If the length of the arguments passed is not two, throw exception If two arguments passed are of different type,
throw exception Call args[0].equals(args[1]) to do the object to object comparision, return the result. If the
specific object's equals() method is not implemented explicitly, equals() from its parents will be used.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptioncalculate(Object[] args, WTContainerRef container) Execute the algorithm using the specified arguments.
-
Method Details
-
calculate
Execute the algorithm using the specified arguments. Return the result.
Supported API: true- Specified by:
calculatein interfaceRuleAlgorithm- Parameters:
args- the arguments for the algorithmcontainer- the container to use for object lookups- Returns:
- Object
- Throws:
WTException
-