摘要:
#1.Lambdas及函数式接口的例子 布尔表达式 (List<String> list) -> list.isEmpty() Predicate<List<String>> 创建对象 () -> new Apple(10) Supplier<Apple> 消费一个对象 (Apple a) -> S 阅读全文
posted @ 2022-05-14 16:03
caiusxin
阅读(22)
评论(0)
推荐(0)
摘要:
输入输出同第一章 第一章传递 静态方法 lambda 此次传递 实现接口的对象,现场实现的接口的对象 fIlterPeoples(company, new PeopleAgePredicate()); fIlterPeoples(company, new PeoplePredicate(){ pub 阅读全文
posted @ 2022-05-14 13:05
caiusxin
阅读(63)
评论(0)
推荐(0)
摘要:
容器:List<People> result=new ArrayList<>(); 构造参数: List<People> company=Arrays.asList(new People("Bob", 20), new People("Allen", 25), new People("Crystal 阅读全文
posted @ 2022-05-14 12:27
caiusxin
阅读(85)
评论(0)
推荐(0)

浙公网安备 33010602011771号