![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java相关
java相关知识
你输我一块大洋
这个作者很懒,什么都没留下…
展开
-
Java8新特性之方法引用及双冒号用法
方法引用静态方法引用特定对象的实例方法引用特定类型任意对象实例方法引用构造方法引用总结为什么有要方法引用,下面是官网文档(链接: 官网方法引用)的说法Method ReferencesYou 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 · 425 阅读 · 0 评论 -
Java8新特性之函数式接口及Lambda表达式
函数式接无返回值无参数无返回值单参数无返回值多参数有返回值无参数有返回值单参数有返回值多参数FunctionalInterface无返回值无参数Runnablepublic FunctionTest{}无返回值单参数Consumer<T>public FunctionTest{}无返回值多参数BiConsumer<T, U>有返回值无参数Supplier<T>有返回值单参数Function<T, R>有返回值多参数BiFu原创 2020-12-01 14:16:09 · 263 阅读 · 0 评论