equalsShallow()

Compare this business object's attribute values with those in the input business object, excluding child business objects from the comparison.

Syntax

boolean equalsShallow(BusObj inputBusObj)
 

Parameters

inputBusObj
A business object to compare with this business object.

Return values

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

Exceptions

CollaborationException--The equalsShallow() method can set the following exception type for this exception:

See also

equalKeys(), equals()

Examples

The following example compares attributes of order2 with attributes of order1, excluding the attributes of child business objects, if any.

boolean areEqual = order1.equalsShallow(order2);
 

Copyright IBM Corp. 2003, 2004