Microsoft SDK for Java

compare

This method of the MultiComparison Class compares the two objects according to the comparison array. The comparison terminates when one of the comparisons in the array determines that the objects are different.

Syntax

public int compare(Object p, Object q);

Return Value

Returns the result of the comparison.

Parameters

p The first object to compare.
q The second object to compare.

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