You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@eurobell.co.uk> on 2002/04/23 23:23:54 UTC

[Collections][SUBMIT] PredicateList

Hi all,
I've updated the classes to work around the existing Predicate class and the
code below, see attached files.

Stephen

> From: Tim Moore <tm...@blackboard.com>
> Works for me! :-)
> > From: Jack, Paul [mailto:pjack@sfaf.org]
> > I wouldn't even have a subclass for TypedList; I'd just put a
> > static convience method in the TypeCheckPredicate class:
> >
> >     static List getTypeCheckedList(List list, Class type)
> >     {
> >          return new PredicateList(list, new TypeCheckPredicate(type));
> >     }