Closures Introduction - UnquietCode/Closures-for-Java GitHub Wiki

The Closure classes provide an easy way to create portable functions on the fly which can be passed around your program. To be fair though, these are not true closures. They are really just beefed-up anonymous classes. The interfaces provide a level of contract that allows existing Java functionality to be utilized. There is no bytecode weaving, special compilers, etc. Small and simplistic, the Closure classes give you the power to make small or large functions on the fly which can be easily passed around and consumed.

Some features like currying are available and provide some interesting ways to manipulate your already-created functions. And it's fun! That's what this is all about really: making programming fun. If you want the basic functionality that a true closure can provide, these classes should get the job done.

I encourage you to check out the examples, download the code, and run through them. Then make a few yourself!