Java相关
java相关知识
你输我一块大洋
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java8新特性之方法引用及双冒号用法
方法引用静态方法引用特定对象的实例方法引用特定类型任意对象实例方法引用构造方法引用总结 为什么有要方法引用,下面是官网文档(链接: 官网方法引用)的说法 Method References You use lambda expressions to create anonymous methods. Sometimes, however, a lambda expression does nothing but call an existing method. In those cases, it’s o原创 2020-12-01 14:17:47 · 558 阅读 · 0 评论 -
Java8新特性之函数式接口及Lambda表达式
函数式接无返回值无参数无返回值单参数无返回值多参数有返回值无参数有返回值单参数有返回值多参数 FunctionalInterface 无返回值无参数 Runnable public FunctionTest{ } 无返回值单参数 Consumer<T> public FunctionTest{ } 无返回值多参数 BiConsumer<T, U> 有返回值无参数 Supplier<T> 有返回值单参数 Function<T, R> 有返回值多参数 BiFu原创 2020-12-01 14:16:09 · 370 阅读 · 0 评论
分享