@Override public int compare(ReportBase inLHS, ReportBase inRHS) { return new CompareToBuilder().append(inLHS.getSendingTime(),inRHS.getSendingTime()).append(inLHS.getReportID(),inRHS.getReportID()).toComparison(); } }
if(SLF4JLoggerProxy.isDebugEnabled(this) && inReport.getSendingTime() != null) { long sendingTime =0; sendingTime = inReport.getSendingTime().getTime(); long systemTime = System.currentTimeMillis(); double diff = (sendingTime-systemTime)/1000.0;
latestReportTable.addCell(order.getLatestReport().getOrderID().getValue()); latestReportTable.addCell(order.getLatestReport().getOrderStatus().name()); latestReportTable.addCell(DateUtils.dateToString(order.getLatestReport().getSendingTime())); latestReportTable.addCell(order.getOrderIdChain().toString()); latestReportTable.addCell(report instanceof ExecutionReport ? ((ExecutionReport)report).getSide().name() : none); latestReportTable.addCell(report.getOrderID().getValue()); latestReportTable.addCell(report.getOrderStatus().name()); latestReportTable.addCell(DateUtils.dateToString(report.getSendingTime())); latestReportTable.addCell(report instanceof ExecutionReport ? ((ExecutionReport)report).getSide().name() : none); latestReportTable.addCell(report instanceof ExecutionReport ? String.valueOf(((ExecutionReport)report).getOrderQuantity()) : none);