🌈 搜索
📅  最后修改于: 2022-03-11 14:52:34.158000             🧑  作者: Mango
Customer james = customers.stream() .filter(customer -> "James".equals(customer.getName())) .findAny() .orElse(null);