java.lang.Object
com.aoapps.lang.util.ComparatorUtils
Utilities that help when working with comparators.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(boolean b1, boolean b2) Deprecated.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 intCompares two strings in a root-locale case-insensitive manner, while remaining strictly consistent with equals.
-
Method Details
-
compare
Deprecated.useInteger.compare(int, int)as of Java 1.7.Compares two integers. -
compare
Deprecated.useShort.compare(short, short)as of Java 1.7.Compares two shorts. -
compare
Deprecated.useBoolean.compare(boolean, boolean)as of Java 1.7.Compares two booleans. -
compare
Deprecated.useLong.compare(long, long)as of Java 1.7.Compares two longs. -
compareIgnoreCaseConsistentWithEquals
Compares two strings in a root-locale case-insensitive manner, while remaining strictly consistent with equals.
-

Boolean.compare(boolean, boolean)as of Java 1.7.