Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.util   Previous This
Package
Next

 


Interface Comparison

public interface Comparison
{
  // Methods
  public int compare(Object p, Object q);
}

This interface is designed for implementing comparisons of two objects (usually used in conjunction with a VectorSort or ArraySort object).

Methods

compare

public int compare(Object p, Object q);

Compares two Objects.

Return Value:

Returns less than 0 if p is less than or comes before q, 0 if p equals q, or greater than 0 if p is greater than or comes after q.

ParameterDescription
p The Object to compare with q.
q The Object to compare with p.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.