6

I found several questions on SO regarding LINQ for Java e.g.

However, those questions were asked around year 2008 - 2010. At that time Java language did not support necessary language feature like lambda expressions (as per Jon Skeet's answer).

Now when Java8 is about to emerge, and will probably provide features such as Lambda Expressions, do you think it is possible to have an LINQ for Java implementation / project soon?

Did you hear about any project trying to fulfill that gap between Java and C#?

Community
  • 1
  • 1
Alexandar
  • 916
  • 2
  • 9
  • 22
  • 3
    I don't think you will find anything like the LINQ query syntax in pure Java, but Java 8 includes something very similar to LINQ fluent syntax (with small variations - where <=> filter, select <=> collect etc.). By the way, Java 8 *will* include lambdas. – assylias Feb 22 '13 at 21:04
  • 1
    @assylias, would you be able to make your comment as an answer and provide some links to *very similar to LINQ fluent syntax* and to details on lambdas. This is something I was looking for. I am happy to accept that answer. Many thanks for your help! – Alexandar Feb 22 '13 at 21:13
  • Can't right now. See for example http://stackoverflow.com/questions/14830313/retrieving-a-list-from-a-java-util-stream-stream-in-java8 – assylias Feb 22 '13 at 22:43
  • If you are looking for LINQ features, that probably won't emerge anytime soon. However, LINQ-to-SQL features can be somewhat well remedied by libraries, the one I used after much research is http://www.querydsl.com/. – Andrew Mao Feb 22 '13 at 22:47
  • 1
    Julian Hyde's Optiq (https://github.com/julianhyde/optiq) is about the closest thing in terms of system operation, if not syntax. – Ross Judson Jul 28 '13 at 23:55

0 Answers0