java 知识点
1.Lambdas及函数式接口的例子
布尔表达式 (List list) -> list.isEmpty() Predicate>
创建对象 () -> new Apple(10) Supplier
消费一个对象 (Apple a) -> System.out.println(a.getWeight()) Consumer
从一个对象中选择/提取(String s) -> s.length() Function或ToIntFunction
合并两个值 (int a, int b) -> a * b IntBinaryOperator
比较两个对象 (Apple a1, Apple a2) -> a1.getWeight().compareTo(a2.getWeight()) Comparator或
BiFunction
或 ToIntBiFunction
2.title
code