java.lang.Object
com.aoapps.lang.util.ComparatorUtils
Utilities that help when working with comparators.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(boolean b1, boolean b2) Deprecated.static int
compare
(int i1, int i2) Deprecated.useInteger.compare(int, int)
as of Java 1.7.static int
compare
(long l1, long l2) Deprecated.useLong.compare(long, long)
as of Java 1.7.static int
compare
(short s1, short s2) Deprecated.useShort.compare(short, short)
as of Java 1.7.static int
Compares 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.