Google Collection Library
Published by peter September 30th, 2007 in java.Recently the Google Collections Library came to my attention. The Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0, brought to you by Google.
Since I’m a frequent user of apaches’ commons-collections library I wondered what the difference is.
From browsing the API and FAQ it seems that:
- It fully based around Java5 features, which is a big issue of commons-collections
- Implementations adhere to the contracts specified by the JDK interfaces
- Almost all implementations are final, according to the FAQ extension should be done through decoration using the ‘forwarding collections’
- They haven’t done any my favorite ‘LazyXYZ’ implementions yet
From the looks of it I think we will see this nice library being adopted quite fast; I’ll certainly be using it on future Java projects. Maybe I’ll even write some ‘LazyXYZ’ decorators using the ‘forwarding collections’!




















1 Response to “Google Collection Library”
Please Wait
Leave a Reply