public abstract static class Helpers.NullsBefore extends Object implements Comparator<String>, Serializable
Compares strings in natural order except that null comes immediately before a given value. This works better than Ordering.natural().nullsFirst() because, if null comes before all other values, it lies outside the submap/submultiset ranges we test, and the variety of tests that exercise null handling fail on those subcollections.
| Modifier | Constructor and Description |
|---|---|
protected |
NullsBefore(String justAfterNull) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String lhs,
String rhs) |
boolean |
equals(Object obj) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected NullsBefore(String justAfterNull)