📅  最后修改于: 2022-03-11 14:52:44.210000             🧑  作者: Mango
list1.stream()
.map(Object1::getProperty)
.anyMatch(
list2.stream()
.map(Object2::getProperty)
.collect(toSet())
::contains)
// Example with predicate
Predicate