[ 
https://issues.apache.org/jira/browse/COLLECTIONS-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541034
 ] 

Stephen Colebourne commented on COLLECTIONS-275:
------------------------------------------------

This could not be implemented. The Collection and Map interfaces cannot be 
implemented by the same class due to to clashing return types on remove(Object)

> IndexedCollection would be a useful addition to Commons Collections
> -------------------------------------------------------------------
>
>                 Key: COLLECTIONS-275
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-275
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>            Reporter: Stephen Kestle
>             Fix For: Generics
>
>
> I propose that an IndexedCollection is added, which has the following 
> properties
> * IndexedCollection<K,C> implements Collection<C>, Map<K,C>
> * Contains a Transformer<C,K> for determining the keys
> * Presents as an unmodifiableMap (all manipulation must be done through the 
> collection)
> * It will need constructors for unique indexes (Map) and non-unique 
> (Map<K,Collection<V>> / MultiMap).  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to