}
for (Option option : optionsList) {
for (Trip tripDate : tripDates) {
if (option.isCandidate()) {
Trip trip = new Trip();
trip.setDepartureDate(tripDate.getDepartureDate());
trip.setArrivalDate(tripDate.getArrivalDate());
trip.setDestination(option.getDestination());
trip.setDestinationLabel(option.getDestinationLabel());
trip.setOperator(option.getOperator());
trip.setOrigin(option.getOrigin());
trip.setOriginLabel(option.getOriginLabel());
trips.add(trip);
}
}
}
logger.info(" Trips size [" + trips.size() + "]");