Freitag, 17. Februar 2012

Lambdaj Closure in Java

Yesterday we played around with the Lambdaj project. The project provides a fancy way to simulate closure in Java. Here some simple examples based on the lambda4j documentation code.



And here a second example with "delayedClosure", which shows how to read a file line by line with lambda4j.



More details about lambda4j please have a look at the project website:
http://code.google.com/p/lambdaj/

1 Kommentar: