private void addToResult(SortedMap<LocalDate, EffortDuration> result,
LocalDate date, EffortDuration duration) {
EffortDuration current = result.get(date) != null ? result.get(date)
: zero();
result.put(date, current.plus(duration));
}
public List<DayAssignment> getDayAssignments(DayAssignment.FilterType filter) {
List<DayAssignment> dayAssignments = new ArrayList<DayAssignment>();
Set<ResourceAllocation<?>> resourceAllocations = getSatisfiedResourceAllocations();