Libraries implementing these ideas
- Mango, a Java library consisting of a number of iterators, algorithms and functions, loosely inspired by the C++ Standard Template Library.
- JGA - Generic Algorithms for Java, a functors library: the intent is to explore and exploit functors as a design and implementation tool to reduce boilerplate coding.
- Jakarta Commons Collections, seeks to build upon the Java Collections Framework by providing new interfaces, implementations and utilities.
I know of JGA before, but hadn't really researched it before I wrote this talk, but it's really good. My Mango stuff labour slightly with algorithms as one thing and iterators as another, it's C++ background coming haunting me. Sapir-Whorf again. JGA really pushes on iterators, and putting them together. All it's algorithms are presented as iterators. It really looks good.
Jakarta Collections is a bit more of a grab bag of stuff, but there are useful bits and pieces in there.