I'd say keep them separate, because they basically do different things. But this is another argument for making a ProxyList base class.
-- 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:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 3:55 PM > To: Jakarta Commons Developers List > Subject: Re: [Collections][SUBMIT] TypedList > > > Yes, I think I'm tending towards PredicatedList now. > > Only one problem, there is also the Transformer class. I was > thinking that a variation on the theme could allow objects to > be transformed on entry to the collection. For example > strings read from a config file that represent numbers could > be converted to Integer objects as they are added. This could > potentially be done as part of the same class, messing up the > name. Or I could create a separate TransformedList class. Views? > > Stephen > > From: Henri Yandell <[EMAIL PROTECTED]> > > The first to jump to mind is PredicatedList. I think that the types > > should be similar, ie) PredicatedList/Predicate, > > ValidatedList/Validator. > > > > How about CheckedList/Check? :) Nice plain inglis. > > > > VerifiedList. ConstrainedList. FilteredList. BlockedList. > > > > I like the general idea. By using a predicate, lots of > different types > > of lists can be coded without having to handle all the list > handling > > stuff. > > > > Hen > > > > On Tue, 23 Apr 2002, Stephen Colebourne wrote: > > > > > Yes, the use of Predicate makes sense to me. The 'simple' > instanceof > > > Predicate can be setup using a static factory method on > TypedList. > > > I'll > take > > > a look at doing this. > > > > > > Stephen > > > > > > BTW: I guess I'll have to rename it, any better suggestions than > > > ValidatedList? > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: > <mailto:commons-dev-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>