LINQ是否有Java等价物? [英] Is there a Java equivalent for LINQ?

查看:124
本文介绍了LINQ是否有Java等价物?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

LINQ的Java等价物是什么?





<有很多问题询问是否存在LINQ的Java等价物。但是大多数都错误地指定没有任何内容。

There are numerous questions asking whether there is a Java equivalent for LINQ. But most of them are incorrectly specifying that there is nothing.

推荐答案

这个库提供了完整的LINQ API:https://github.com/nicholas22/jpropel-light

This library provides a full LINQ API: https://github.com/nicholas22/jpropel-light

它是这样的使用函数式构造,它也使用延迟执行。

It does so with functional-style constructs and it also uses deferred execution.

// select names starting with j, using LINQ-style statements
new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct().all(println());

这篇关于LINQ是否有Java等价物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆