Microsoft SDK for Java

sort

The sort method of the IntRanges Class contains the following signatures:

sort(IIntRangeComparator judge)
sort()

sort(IIntRangeComparator judge)

Sorts the ranges by the first element in each range pair.

Syntax

public synchronized void sort(IIntRangeComparator judge);

Exceptions

Throws SecurityException if the key is immutable.

Parameters

judge The interface to help compare equal ranges while sorting. This parameter value can be null.

sort()

Sorts the ranges by left endpoints.

Syntax

public void sort();

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