Microsoft SDK for Java

equals

The equals method of the Object Class contains the following signatures:

equals(Category other)
equals(Object other)

equals(Category other)

Tests a category for equality with another category. Two categories are equal if they have the same name.

Syntax

public boolean equals(Category other);

Return Value

Returns true if other is not null and the two categories have the same name; otherwise, returns false.

Parameters

other The other Category object to test for equality.

equals(Object other)

Tests a category for equality with another object.

Syntax

public boolean equals(Object other);

Return Value

Returns true if the other object is a category and the two categories are equal; otherwise, returns false.

Parameters

other The other object to test for equality.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.