@ThreadSafe public final class BundleKeyComparator extends Object implements Comparator<String>, Serializable
Bundle.
This class is intended for sorting keys for consistent program ordering, rather than sorting items for display in a user interface.
| Constructor and Description |
|---|
BundleKeyComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String object1,
String object2)
Performs
String comparison, with handling of null values. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(String object1, String object2)
String comparison, with handling of null values.compare in interface Comparator<String>object1 - first string to compare.object2 - second string to compare.String.compareTo(String) value, except that null
is always less than a non-null value and that two null values are
equal.