@Test public void testLess() throws Exception { rho.delay(Delays.toMillis(15L)); Assert.assertThat(comparator.compare(lho.build(), rho.build()), is(lessThan(0))); }
@Override public int compare(ExcelRow lho, ExcelRow rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getArrivalStation, nullsLast(naturalOrder())) .thenComparing(T::getDepartureStation, nullsLast(naturalOrder())) .thenComparing(T::getLinkStation, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getDelay, nullsLast(naturalOrder())) )).compare(lho, rho); }
ExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow lho, ExcelRow rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getArrivalStation, nullsLast(naturalOrder())) .thenComparing(T::getDepartureStation, nullsLast(naturalOrder())) .thenComparing(T::getLinkStation, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getDelay, nullsLast(naturalOrder())) )).compare(lho, rho); } }
ExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow lho, ExcelRow rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getArrivalStation, nullsLast(naturalOrder())) .thenComparing(T::getDepartureStation, nullsLast(naturalOrder())) .thenComparing(T::getLinkStation, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getDelay, nullsLast(naturalOrder())) )).compare(lho, rho); }  }
ExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow lho, ExcelRow rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getArrivalStation, nullsLast(naturalOrder())) .thenComparing(T::getDepartureStation, nullsLast(naturalOrder())) .thenComparing(T::getLinkStation, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getDelay, nullsLast(naturalOrder())) )).compare(lho, rho); }  @Override int compare(ExcelRow lho, ExcelRow rho); }
ExcelRowComparator extends AbstractExcelRowComparator<ExcelRow<T>> { @Override public int compare(ExcelRow lho, ExcelRow rho) { return nullsLast(compareReferences( comparing(T::getDate, nullsLast(naturalOrder())) .thenComparing(T::getArrivalStation, nullsLast(naturalOrder())) .thenComparing(T::getDepartureStation, nullsLast(naturalOrder())) .thenComparing(T::getLinkStation, nullsLast(naturalOrder())) .thenComparing(T::getExpectedDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getExpectedTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveDepartureTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveArrivalTime, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine1, nullsLast(naturalOrder())) .thenComparing(T::getEffectiveTrainLine2, nullsLast(naturalOrder())) .thenComparing(T::getDelay, nullsLast(naturalOrder())) )).compare(lho, rho); }  @Override int compare(ExcelRow lho, ExcelRow rho);  }