Check out example codes for "filter and map multiple fields from java stream". It will help you in understanding the concepts better.

Code Example 1

// Note that you shouldn't normally use == on objects
Predicate<Detail> itemPredicate = d-> item.equals(d.getItem());
Predicate<Detail> namePredicate = d-> name.equals(d.getName());

details.stream()
    .filter(itemPredicate.and(namePredicate))
    .collect(Collectors.toList());

Learn ReactJs, React Native from akashmittal.com