I am trying to find intersection of two lists based on some condition and doing some steps. Couldn\'t find a way to do it (in learning stage) :)
intersection
The simplest approach is this:
List intersect = list1.stream() .filter(list2::contains) .collect(Collectors.toList());