Google Collections Library

Google Collections Library is the extension of Java 1.5 Collection Framework. As we all know the collection framework is mostly used to handle objects in the Java Programming. So I think an extension API to this Its a very interesting as well as useful development to the Java world. Now Google is released its ALPHA version. This API includes so many new types, utility classes and some other helper implementations.The major new types are:

  • BiMap. A Map that guarantees unique values, and supports an inverse view.
  • Multiset. A Collection that may contain duplicate values like a List, yet has order-independent equality like a Set. Often used to represent a histogram.
  • Multimap. Similar to Map, but may contain duplicate keys. Has subtypes SetMultimap and ListMultimap providing more specific behavior.

Static utility classes include:

  • Comparators. Natural order, compound, null-friendly, ad-hoc . . .
  • Iterators and Iterables. Element-based equality, cycle, concat, partition, filter with predicate, transform with function . . .
  • Lists, Sets and Maps. A plethora of convenient factory methods and much more.
  • PrimitiveArrays: “boxing”/”unboxing” of primitive arrays

Please find the API documentaion here.Google Collection API Project home you can find here.To find Geertjan’s Blog about this API and Interview with its creators, please click here.

Technorati Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: