com.steema.teechart
Interface Comparator

All Known Implementing Classes:
Map.CompareOrder, Pie.CompareSlice

public interface Comparator

A comparison function, which imposes a total ordering on some collection of integers. Comparators can be passed to a sort method (such as misc.Utils.sort) to allow precise control over the sort order.


Method Summary
 int compare(int a, int b)
          Compares its two arguments for order.
 

Method Detail

compare

int compare(int a,
            int b)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Parameters:
a - the first integer to be compared.
b - the second integer to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.