![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java8
文章平均质量分 94
静心观复
这个作者很懒,什么都没留下…
展开
-
Java Stream map() vs flatMap()
Java 8 map() and flatMap() are two important methods of java.util.stream.Stream interface used for transformation or mapping operations. Both are intermediate operations. The only difference is that m...原创 2019-12-19 18:16:26 · 178 阅读 · 0 评论 -
Java 8 Functional Interface and Lambda Expression
一、Lambda expressions1.1 What is a lambda expression in Java?In programming, a Lambda expression (or function) is just an anonymous function, i.e., a function with no name and without being bounded t...原创 2019-08-28 14:43:07 · 411 阅读 · 0 评论 -
Java 8 Method Reference
Method references are a special form of the lambda expression.You use lambda expressions to create anonymous methods. Sometimes, however, a lambda expression does nothing but call an existing method....原创 2019-08-28 18:12:23 · 160 阅读 · 0 评论 -
Java 8 ForEach
1. OverviewOne common requirement in Java application is to iterate through the elements of a collection. Prior to Java 8, the three most common ways to iterate through a collection are by using the ...原创 2019-08-29 10:59:51 · 159 阅读 · 0 评论 -
Java 8 Stream
1 OverviewStream represents a sequence of objects from a source, which supports aggregate operations. Following are the characteristics of a Stream:Sequence of elements − A stream provides a set of ...原创 2019-08-29 14:52:40 · 244 阅读 · 0 评论 -
Java 8 Optionals
1 OverviewAll of us must have encountered NullPointerException in our applications. This exception happen when you try to utilize a object reference which has not been initialized, initialized with n...原创 2019-09-02 13:37:53 · 370 阅读 · 0 评论