New Google Collections release (snapshot 20080818)

0 views
Skip to first unread message

Jared Levy

unread,
Aug 18, 2008, 8:43:14 PM8/18/08
to google-colle...@googlegroups.com, Google Collections Library - developer list
A new 20080818 release of the Google Collections Library is now
available at http://code.google.com/p/google-collections/downloads/list

Here are the highlights of what it includes:

Added classes

* Collections2: Provides static methods for working with
Collection instances
* ImmutableBiMap: An immutable BiMap with reliable user-specified
iteration order
* ImmutableMultimap: An immutable ListMultimap with reliable
user-specified key and value iteration order
* ImmutableMultiset: An immutable hash-based multiset
* Serialization: Provides static method for serializing collection classes
* UnmodifiableIterator: An iterator that does not support remove()

New functionality

* Added Join methods taking a Map parameter
* Added Comparators.toStringOrder()
* Added Constraints.notNull()
* Added HashMultiset.create() methods
* Added ImmutableList.of() methods taking 2-5 parameters and
ImmutableList.copyOf()
* Added ImmutableSet.copyOf()
* ImmutableSortedSet now extends ImmutableSet
* Added ImmutableSet.orderedBy() and reverseOrder()
* Added contains(), containsNull(), removeAll() and retainAll()
methods to Iterables and Iterators
* Added Sets.filter()
* Widespread Javadoc improvements
* Explicit serialized forms for most collection classes
* To support more serialization options, Forwarding classes now
have an abstract delegate() method, have a no-argument constructor,
and don't implement Serializable
* Moved static ForwardingCollection methods to Iterables

Removed code [most of this functionality is available elsewhere in
Google Collections]

* Removed Functions.TRIM_STRING and trimString()
* Removed Objects method deepEquals(), deepHashCode(),
deepToString(), and nonNull()
* Removed classes ImmutableBiMapBuilder, ImmtuableMultimapBuilder,
and LinkedListMultimap
* Removed interface SerializableComparator
* Removed constructor ConcurrentMultiset(ConcurrentMap)
* Removed constructors EnumBiMap(EnumBiMap) and
EnumHashBiMap(EnumHashBiMap),
* Removed constructors HashMultiset(int) and HashMultiset(Iterable),
* Removed Maps methods immutableBiMap(), newBiMap(),
sortedKeySet(), uniqueIndex(Collection, Function), and
uniqueIndex(Iterator, Function)
* Removed Multimaps.immutableMultimap() methods
* Removed Multisets methods emptyMultiset() and immutableMultiset()

Please let me know if you have any questions or feedback.

Jared

Jared Levy

unread,
Aug 20, 2008, 8:24:54 PM8/20/08
to google-colle...@googlegroups.com, Google Collections Library - developer list
I replaced the 20080818 release, which was built with Java 6, with a
20080820 release that works with Java 5. The source code is the same.
Reply all
Reply to author
Forward
0 new messages