Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 71266 invoked from network); 23 Apr 2002 19:50:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Apr 2002 19:50:23 -0000 Received: (qmail 12354 invoked by uid 97); 23 Apr 2002 19:50:24 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 12338 invoked by uid 97); 23 Apr 2002 19:50:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 12316 invoked from network); 23 Apr 2002 19:50:24 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [Collections][SUBMIT] TypedList Date: Tue, 23 Apr 2002 15:50:18 -0400 Message-ID: <66337F04F2A1E440BF87F2080B5F5370623DB9@madison.dc.Blackboard.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Collections][SUBMIT] TypedList Thread-Index: AcHq/7qu+XxCQA5qQm2oDiyQyjYJKAAAEUxw From: "Tim Moore" To: "Jakarta Commons Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'd say keep them separate, because they basically do different things. But this is another argument for making a ProxyList base class. --=20 Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 > -----Original Message----- > From: Stephen Colebourne [mailto:scolebourne@eurobell.co.uk]=20 > Sent: Tuesday, April 23, 2002 3:55 PM > To: Jakarta Commons Developers List > Subject: Re: [Collections][SUBMIT] TypedList >=20 >=20 > Yes, I think I'm tending towards PredicatedList now. >=20 > Only one problem, there is also the Transformer class. I was=20 > thinking that a variation on the theme could allow objects to=20 > be transformed on entry to the collection. For example=20 > strings read from a config file that represent numbers could=20 > be converted to Integer objects as they are added. This could=20 > potentially be done as part of the same class, messing up the=20 > name. Or I could create a separate TransformedList class. Views? >=20 > Stephen >=20 > From: Henri Yandell > > The first to jump to mind is PredicatedList. I think that the types=20 > > should be similar, ie) PredicatedList/Predicate,=20 > > ValidatedList/Validator. > > > > How about CheckedList/Check? :) Nice plain inglis. > > > > VerifiedList. ConstrainedList. FilteredList. BlockedList. > > > > I like the general idea. By using a predicate, lots of=20 > different types=20 > > of lists can be coded without having to handle all the list=20 > handling=20 > > stuff. > > > > Hen > > > > On Tue, 23 Apr 2002, Stephen Colebourne wrote: > > > > > Yes, the use of Predicate makes sense to me. The 'simple'=20 > instanceof=20 > > > Predicate can be setup using a static factory method on=20 > TypedList.=20 > > > I'll > take > > > a look at doing this. > > > > > > Stephen > > > > > > BTW: I guess I'll have to rename it, any better suggestions than=20 > > > ValidatedList? > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > >=20 >=20 > -- > To unsubscribe, e-mail: =20 > unsubscribe@jakarta.apache.org> > For=20 > additional commands,=20 > e-mail: >=20 >=20 -- To unsubscribe, e-mail: For additional commands, e-mail: