private List<ApprovalTypeDto> createApprovalTypes( ProjectDto project, Map<String, LabelInfo> labels) { return labels .entrySet() .stream() .filter(e -> project.approvals.containsKey(e.getKey()) == false) .map(e -> createApprovalType(project, e.getKey(), e.getValue())) .collect(Collectors.toList()); }
public void addApprovals(ProjectDto project, Map<String, LabelInfo> labels) { if (labels.size() > 0) { labels.entrySet().forEach(e -> addApproval(project, e.getKey(), e.getValue())); } }