[ 
https://issues.apache.org/jira/browse/COLLECTIONS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Neidhart resolved COLLECTIONS-243.
-----------------------------------------

    Resolution: Fixed
    
> Generic versions of Predicated, Syncronized and Unmodifiable classes
> --------------------------------------------------------------------
>
>                 Key: COLLECTIONS-243
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-243
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Bag, Collection, List, Set
>    Affects Versions: 3.2
>         Environment: OS X
>            Reporter: Edwin Tellman
>            Assignee: Stephen Kestle
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: collections_06_03_11.patch
>
>
> I added generics to some more classes and fixed some compilation problems.
> The generic version of Transformer required the input and output types to be 
> identical.  This seemed to me to reduce the usefulness of transformed 
> collections, as transforming one type into another seems like it would be a 
> fairly common operation.  I'm not sure how to fix this, however, as it also 
> doesn't seem feasible to have a generic TransformedCollection with different 
> input and output types that implements Collection<E>.  Anyway, this patch 
> de-generifies TransformedCollection, which also fixes some compilation 
> problems.  Please disregard this change if you disagree and have a better 
> solution.
> The modified collection classes are:
> Bags: PredicatedSortedBag, AbstractBagDecorator, SynchronizedBag, 
> UnmodifiableSortedBag, SynchronizedSortedBag, PredicatedBag
> Lists: PredicatedList, SynchronizedList
> Sets: PredicatedSortedSet, SynchronizedSortedSet, PredicatedSet, 
> UnmodifiableSortedSet, SynchronizedSet
> Miscellaneous: PredicatedBuffer

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to