Is there a Java equivalent for LINQ?

Possible Duplicate:
What is the Java equivalent for LINQ?

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


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());

另一个我自己试过的是jaque:http://code.google.com/p/jaque/

链接地址: http://www.djcxy.com/p/34282.html

上一篇: 分析和翻译Java 8 lambda表达式

下一篇: 是否有与LINQ相当的Java?