com.starteam.util
Interface SortCompare


public interface SortCompare

Delegate object to hand to sort for call -back compare.


Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Compare effectively returns a-b.
 

Method Detail

compare

int compare(java.lang.Object a,
            java.lang.Object b)
Compare effectively returns a-b.
     e.g. +1 (or any positive number) if a > b
           0                          if a == b
          -1 (or any negative number) if a < b
 

Parameters:
a - the first object to compare
b - the second object to compare
Returns:
int +1, 0 or -1 depending upon equality


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.