Overview

The asdk.condition package that ships with ASDK includes several convenience classes for executing conditional logic. These classes allow developers to encode business rules into reuseable components encapsulated within objects. The two primary interfaces in this package are: asdk.condition.UnaryCondition and asdk.condition.BinaryCondition. The UnaryCondition provides an interface to executing a command on a single operand and returning a boolean value based on the result while the BinaryCondition introduces an API for executing an operation on two operands, again returning a boolean value based on the result.

The next two sections of this guide discuss these two interfaces in terms of the several implemenations that are provided within ASDK.

Unary Conditions

Binary Conditions