Hi John, I have not opened a ticket yet, but ... I have had very similar requirements, and will [most-likely] be putting something in that will solve your problem. However, it will not be a class - consider this method Map<C, K,V> CollectionUtils.toMap(Collection<C> input, Transformer<C,K> keyTransformer, Transformer<C,V> valueTransformer, Map<K,V> map) You could then do what you wanted, passing in your integer transformer for the key, and potentially MultiHashMap for the map. NB - this is in an ideal (and we're heading to that) collections world. MultiHashMap will need to be changed to extend map properly and implement the interface in a consistent way (not breaking Map contract etc). Also note that there will be other variations on the method - most commonly Map<K,V> CollectionUtils.toMap(Collection<V> input, Transformer<V,K> keyTransformer){ return toMap(input, keyTransformer, NOPTransformer, new HashMap<K,V>()); } I'll raise a ticket within the next few days - watch this list! Cheers Stephen John wrote: Hi, --
This e-mail and
any attachments are intended only for the person to whom it is
addressed and may contain privileged, proprietary, or other data
protected from disclosure under applicable law. If you are not the
addressee or the person responsible for delivering this to the
addressee you are hereby notified that reading, copying or distributing
this transmission is prohibited. If you have received this e-mail in
error, please telephone us immediately and remove all copies of it from
your system. Thank you for your co-operation.
|
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- Class I would like to commit to ... John
- Re: Class I would like to co... Rahul Akolkar
- Re: Class I would like to co... Stephen Kestle
- Re: Class I would like t... James Carman
- Re: Class I would li... Stephen Kestle
- Re: Class I wou... James Carman
- Re: Class I... Stephen Kestle
- Re: Class I... James Carman
- Re: Class I would like t... John
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development
- [EMAIL PROTECTED]: Project commons-je... commons-jelly-tags-jaxme development