[java] What is the Java equivalent for LINQ?

LINQ to Objects - JAVA 8 has added the Stream API which adds support for functional-style operations on streams of values:

Package java.util.stream

Java 8 Explained: Applying Lambdas to Java Collections

LINQ to SQL/NHibernate/etc. (database querying) - One option would be to use JINQ which also uses the new JAVA 8 features and was released on Feb 26, 2014 on Github: https://github.com/my2iu/Jinq

Jinq provides developers an easy and natural way to write database queries in Java. You can treat database data like normal Java objects stored in collections. You can iterate over them and filter them using normal Java commands, and all your code will be automatically translated into optimized database queries. Finally, LINQ-style queries are available for Java!

JINQ project site: http://www.jinq.org/