I am interested in using functors (function objects) in Java. With quick googling I found these 3 packages:
- Java Generics Algorithms: http://jga.sourceforge.net/
- Commons functor: http://commons.apache.org/sandbox/functor/
- Mango: http://www.jezuk.co.uk/cgi-bin/view/mango
and of 3, JGA seemed like it might have the best design. But I suspect others here who have actually used one or more of the packages might be able to offer more insight as to pros and cons of these (and perhaps other) functor packages.
The Google Collections Library provides a
Functioninterface that is similar (though probably not as in depth).