I am trying to figure out a way to generically filter a List of beans (assume list contains objects of the same type). I am thinking that I need to create a filter string and have the list parse and match the objects in the list against the filter.
Has anyone done this before, or can help in anyway?
Describe what you mean by filter string or show us what you've tried. If you want to always filter all widgets with price < 10.00 that's pretty easy. If you want the user to enter expressions so the string looks like "price < 10.00" or "quantity > 5" things get a bit trickier.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi