What would a Predicate look like? We've passed an object in, so it must have the object being added (or removed/searched for etc???).
So I'm guessing in Predicate(d)List we'll do some code kinda like: // uses ArrayList internally, can supply another type of List somehow. List list = new PredicatedList( new TypePredicate(String.class) ); list.add("foo"); This would do in the TypePredicate: public boolean check(Object obj) { return BeansUtil.instanceof(obj, myType); } or some such. I imagine the Predicate should have access to the list it came from, so it would have a setCollection setMap? interface? Something. public void setStructure(Object structure). Then I can have a predicate which says, let the first person in, then let no one else in who has a birthday of <birthday>. I would also then imagine a MultiPredicate which takes a bunch of Predicates and only allows things if each one works. *ponder* I'm starting to waffle. Hen -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>