private compare ( object x, object y ) : int | ||
x | object | |
y | object | |
Результат | int |
public static int compare(object x, object y)
{
Ops xyops = ops(x).combine(ops(y));
if (xyops.lt(x, y))
return -1;
else if (xyops.lt(y, x))
return 1;
else
return 0;
}