PredicatedList exists to filter input to a collection by blocking invalid elements. A typical example is to create a LIst that only allows an object of a specific type.
What you want is FilteredList. Unfortunately, that doesn't exist in [collections]. I'd like to add it, but time limits me. If you want to write a version (based on the CVS HEAD code) please feel free. Stephen > from: "K.C. Baltz" <[EMAIL PROTECTED]> > > I tried to use a Predicated List today (ListUtils.predicatedList) and > it didn't work the way I expected. What I wanted to do was pass it a > list of items and a Predicate such that it would "filter" the list for > me and the new list would only contain those items that match the > predicate. However, I received an IllegalStateException because items > in my list didn't match the Predicate. What is the point of the > predicated list if it does this? > > K.C. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
