@Test public final void testCompareNullOnLeft() throws Exception { Assert.assertThat( comparator.compare( null, new BatchExcelRow.Builder(null, null).build(false) ), greaterThan(0) ); }
@Override public int compare(ExcelRow<T> lho, ExcelRow<T> rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) )).compare(lho, rho); }
TimeBasedExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow<T> lho, ExcelRow<T> rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) )).compare(lho, rho); } }
TimeBasedExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow<T> lho, ExcelRow<T> rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) )).compare(lho, rho); }  }
TimeBasedExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow<T> lho, ExcelRow<T> rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) )).compare(lho, rho); }  @Override int compare(ExcelRow<T> lho, ExcelRow<T> rho); }
TimeBasedExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow<T> lho, ExcelRow<T> rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) )).compare(lho, rho); }  @Override int compare(ExcelRow<T> lho, ExcelRow<T> rho);  }