会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风来了
CnBlogs
Home
New Post
Contact
Admin
Subscription
2017年5月12日
Most efficient way to get the last element of a stream
Do a reduction that simply returns the current value:Stream<T> stream; T last = stream.reduce((a, b) -> b).orElse(null);
Read More
posted @ 2017-05-12 11:35 等风来。。
Views(168)
Comments(0)
Diggs(0)
公告
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------