wt.rule.algorithm
Class EqualsTest
java.lang.Object
wt.rule.algorithm.EqualsTest
- All Implemented Interfaces:
- RuleAlgorithm
public final class EqualsTest
- extends Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calculate
public Object calculate(Object[] args,
WTContainerRef container)
throws WTException
- Execute the algorithm using the specified arguments. Return the result.
Supported API: true
- Specified by:
calculate in interface RuleAlgorithm
- Parameters:
args - the arguments for the algorithmcontainer - the container to use for object lookups
- Returns:
- Object
- Throws:
WTException