Why did I call that compareTo()? compare() is more appropriate for a non

instance method.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2028 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-01-05 21:53:05 +00:00
parent bef3e84b31
commit 95ce692a34
@@ -67,7 +67,7 @@ public class Comparators
/**
* Compares two integers in an overflow safe manner.
*/
public static int compareTo (int value1, int value2)
public static int compare (int value1, int value2)
{
return (value1 < value2 ? -1 : (value1 == value2 ? 0 : 1));
}