Just sharing some of my inconsequential lunch conversations with you... RSS  

Thursday, September 20, 2007

Quaere: LINQ Arrives for Java

in: infoq

It seems like LINQ is a Anders monopoly. Anders Noras introduced the Quaere library, billed as LINQ for Java, last week at JavaZone.

An example of retrieving a list of product name’s from a list of products is:

List products = Arrays.asList(Product.getAllProducts());
Iterable productNames =
from("p").in(products).
select("p.getProductName()");

Oops, it seems like typed checking is out. Not really LINQ in an language extension way, is it?

No comments:

Development Catharsis :: Copyright 2006 Mário Romano