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:
@@ -67,7 +67,7 @@ public class Comparators
|
|||||||
/**
|
/**
|
||||||
* Compares two integers in an overflow safe manner.
|
* 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));
|
return (value1 < value2 ? -1 : (value1 == value2 ? 0 : 1));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user