Microsoft SDK for Java

Color.equals

Retrieves a boolean value that indicates whether the specified object is equivalent to this Color object.

Syntax

public boolean equals( Object obj )

Parameters

obj

The object to compare to this one.

Return Value

Returns true if the objects are equivalent; otherwise, returns false.

Remarks

If the object you specify is not a Color object, or the colors do not match, this method returns false.

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