Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 24816 invoked from network); 21 Mar 2008 08:55:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2008 08:55:22 -0000 Received: (qmail 48888 invoked by uid 500); 21 Mar 2008 08:55:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 48740 invoked by uid 500); 21 Mar 2008 08:55:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 48731 invoked by uid 99); 21 Mar 2008 08:55:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 01:55:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 08:54:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B6558234C0AC for ; Fri, 21 Mar 2008 01:53:24 -0700 (PDT) Message-ID: <1523627053.1206089604745.JavaMail.jira@brutus> Date: Fri, 21 Mar 2008 01:53:24 -0700 (PDT) From: "Stephen Kestle (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (COLLECTIONS-243) Generic versions of Predicated, Syncronized and Unmodifiable classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COLLECTIONS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephen Kestle updated COLLECTIONS-243: --------------------------------------- Assignee: Stephen Kestle > 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: Generics > Environment: OS X > Reporter: Edwin Tellman > Assignee: Stephen Kestle > Priority: Minor > Fix For: Generics > > 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. 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. - You can reply to this email to add a comment to the issue online.