Equals

Compares the attributes of two business objects (including child business objects) to determine if they are equal.

Inputs

Business object 1
The first business object (a BusObj object) in the comparison.

Business object 2
The second business object (a BusObj object) in the comparison.

Output

Returns true if the values of all attributes are the same; otherwise, returns false.

Exceptions

The Equals function block can set the following exception type for a CollaborationException exception:

Notes

This function block compares this business object's attribute values with those in the input business object. If the business objects are hierarchical, the comparison includes all attributes in the child business objects.

In the comparison, a null value is considered equivalent to any value to which it is compared and does not prevent a return of true.

Related information

This function block is based on the BusObj.equals() method. For more information, see equals().

Copyright IBM Corp. 1997, 2004