- java.lang.Object
-
- com.aoapps.lang.util.ComparatorUtils
-
public final class ComparatorUtils extends Object
Utilities that help when working with comparators.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intcompare(boolean b1, boolean b2)Deprecated.useBoolean.compare(boolean, boolean)as of Java 1.7.static intcompare(int i1, int i2)Deprecated.useInteger.compare(int, int)as of Java 1.7.static intcompare(long l1, long l2)Deprecated.useLong.compare(long, long)as of Java 1.7.static intcompare(short s1, short s2)Deprecated.useShort.compare(short, short)as of Java 1.7.static intcompareIgnoreCaseConsistentWithEquals(String s1, String s2)Compares two strings in a root-locale case-insensitive manner, while remaining strictly consistent with equals.
-
-
-
Method Detail
-
compare
@Deprecated public static int compare(int i1, int i2)
Deprecated.useInteger.compare(int, int)as of Java 1.7.Compares two integers.
-
compare
@Deprecated public static int compare(short s1, short s2)
Deprecated.useShort.compare(short, short)as of Java 1.7.Compares two shorts.
-
compare
@Deprecated public static int compare(boolean b1, boolean b2)
Deprecated.useBoolean.compare(boolean, boolean)as of Java 1.7.Compares two booleans.
-
compare
@Deprecated public static int compare(long l1, long l2)
Deprecated.useLong.compare(long, long)as of Java 1.7.Compares two longs.
-
-