--- Andrei Polushin <[EMAIL PROTECTED]> wrote: > The classes in 2nd-level packages (like in > org.apache.commons.collections.map) are > 'decorators'. They are not > interfaces (like MultiMap), and not self-contained > implementations (like > MultiHashMap).
Sorry, but this isn't entirely correct. There are concrete implementations in the org.apache.commons.collections.map package, such as HashedMap, LinkedMap and LRUMap. There are also the implementations of the decorators. Personally, I would recommend using the decorators directly via their decorate() static factory methods rather than via MapUtils. The interfaces are in the base package and will remain there. (Note this all refers to v3.0 and onwards of collections) Why is MultiHashMap not in the map package? Because there wasn't time to rewrite it for v3.0 (or 3.1). A new class - MultiValueMap - will exist in the map package for v3.2, and will replace MultiHashMap. Stephen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
