Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Long> selectedPlans = new ArrayList<>();
- ratedPlansScreenBean = ratedPlansScreenSession.getRatedPlansSubgroupInfoForEnrollSetUp(quoteId, true);
- List<SGQuotePlanData> resource = sgQuotePlanService.getQuotePlans(quoteId, true);
- List<SGQuotePlanData> resource2 = new ArrayList<>();
- if (ratedPlansScreenBean != null)
- {
- ratedPlansScreenBean.getSubgroups().forEach(subgroup ->
- subgroup.getSections()
- .forEach(section -> section.getPlans().stream()
- .filter(RatedPlanBean::isSelected)
- .forEach(ratedPlanBean -> selectedPlans.add(ratedPlanBean.getQuotePlanId()))));
- selectedPlans.forEach(planId ->
- resource.forEach(sgQuotePlanData ->
- {
- if (sgQuotePlanData.getId().equals(planId))
- {
- resource2.add(sgQuotePlanData);
- }
- }
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement