@Test public void isProcessedTaskChangeWithNoChange() { LocalDateTime taskChangeTime = LocalDateTime.now(); assertThat(context.isProcessedTaskChange(TASK_ID1, taskChangeTime)).isFalse(); }
public boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime) { return changeTime.equals(taskChangeTimes.get(taskId)); }
SolverHandlerContext { public boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime) { return changeTime.equals(taskChangeTimes.get(taskId)); } }
SolverHandlerContext { public boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime) { return changeTime.equals(taskChangeTimes.get(taskId)); } SolverHandlerContext(Duration queryShift); }
SolverHandlerContext { public boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime) { return changeTime.equals(taskChangeTimes.get(taskId)); } SolverHandlerContext(Duration queryShift); long getCurrentChangeSetId(); void setCurrentChangeSetId(long currentChangeSetId); long nextChangeSetId(); boolean isProcessedChangeSet(long changeSetId); boolean isCurrentChangeSetProcessed(); void setProcessedChangeSet(long changeSetId); void clearProcessedChangeSet(); void setTaskChangeTime(long taskId, LocalDateTime changeTime); boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime); void clearTaskChangeTimes(LocalDateTime untilLocalDateTime); void clearTaskChangeTimes(); LocalDateTime getPreviousQueryTime(); void setPreviousQueryTime(LocalDateTime previousQueryTime); LocalDateTime getNextQueryTime(); void setNextQueryTime(LocalDateTime nextQueryTime); LocalDateTime shiftQueryTime(LocalDateTime queryTime); }
SolverHandlerContext { public boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime) { return changeTime.equals(taskChangeTimes.get(taskId)); } SolverHandlerContext(Duration queryShift); long getCurrentChangeSetId(); void setCurrentChangeSetId(long currentChangeSetId); long nextChangeSetId(); boolean isProcessedChangeSet(long changeSetId); boolean isCurrentChangeSetProcessed(); void setProcessedChangeSet(long changeSetId); void clearProcessedChangeSet(); void setTaskChangeTime(long taskId, LocalDateTime changeTime); boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime); void clearTaskChangeTimes(LocalDateTime untilLocalDateTime); void clearTaskChangeTimes(); LocalDateTime getPreviousQueryTime(); void setPreviousQueryTime(LocalDateTime previousQueryTime); LocalDateTime getNextQueryTime(); void setNextQueryTime(LocalDateTime nextQueryTime); LocalDateTime shiftQueryTime(LocalDateTime queryTime);  }