Google Collection Library

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’!

This entry was posted in java. Bookmark the permalink.

One Response to Google Collection Library

  1. Pingback: LazyList based on the Google Collections Library at log4p

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>