Class IfNotNullTest

java.lang.Object
wt.rule.algorithm.IfNotNullTest
All Implemented Interfaces:
RuleAlgorithm

public final class IfNotNullTest extends Object implements RuleAlgorithm
Input Parameter of the algorithm:args array Return value of the algorithm: return true, if the first arg is NOT Null, else, return false

Supported API: true
  • Method Details

    • 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 algorithm
      container - the container to use for object lookups
      Returns:
      Object
      Throws:
      WTException