Microsoft SDK for Java

orderRanges

This method of the IIntRangeComparator Interface compares equal ranges. This method is called by IntRanges.sort.

Syntax

int orderRanges(IntRanges ranges, int i1, int i2);

Return Value

Returns an integer indicating how to interpret two equal ranges. This can be one of the values shown in the following table.

ORDER_BEFORE i1 should be placed before i2.
ORDER_EQUAL i1 and i2 are equal.
ORDER_AFTER i1 should be placed after i2.

Parameters

ranges The set of integer ranges to order.
i1 The index of first range.
i2 The index of second range.

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