equals()

Determines whether a specified attribute is the same as the current attribute.

Syntax

public boolean equals(Object obj)

Parameters

obj
Is the object that represents the attribute to compare with the current attribute.

Return values

Returns True if the specified attribute is the same as this attribute; otherwise returns False.

Notes

This method verifies if the specified attribute matches in name, type, whether it is a key, whether it is a foreign key and whether it is a required attribute matches, with this attribute.

Copyright IBM Corporation 1997, 2004. All Rights Reserved.