I've swung to Filter as a concept. We're really discussing the same concept as ServletFilters. Can we model on that? Change the input, block the input, change the output, block the output??
If we're blocking and transforming, then is it just a filter concept? Can we write a FilterCollection and FilterMap that both take filters and delegate down to their internal collection/map? Hen On Tue, 23 Apr 2002, Stephen Colebourne wrote: > 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:[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]>