I've made extensive use of Apache Commons Collections over the years. It has a lot of really handy wrappers and utilities for doing list and set manipulation that Java doesn't do out of the box. So, in my current project I am using jdk1.6, generics, and all that good stuff. I was using the LazyList class and got the old List is a raw type. References to generic type List should be parameterized warning from Eclipse. So, I thought to myself: "Oh bother.. I bet it doesn't support generics yet." I did some poking around, and confirmed that. I can fathom what sort of undertaking that would be, so I can certainly see why it's not there yet, given that this is an open source project. There are some implementations by others, such as http://sourceforge.net/projects/collections and http://larvalabs.com/collections/. However, I'm leary to use these because of the level trust I have in the stability of existing code, and the fact that when the commons people do write a port that supports generics, the others will seemingly be made obsolete. Ah well, I guess with every silver lining, there's a cloud :).
Comments
as an alternative to commons collections with generics
Post new comment