Commons BeanUtils Bean CollectionsDealing with collections of beans is a common feature of development in Java. A lot of time is spent creating bean-specific implementations for standard collection manipulators such as functors and comparators.
But won't this be slower? Yes, reflection is slower than direct references but in real life applications, this is typically insignificant. So why not use these classes to speed development and then substitute faster implementations only where the profiler indicates there is a problem :) Quick-Quick Guide To Functors
Many of the classes in
The word This is actually pretty useful when it comes to collections of beans. It's a common problem to want to extract information from a collection of beans or to change all properties to a particular value. Functors can be a particularly elegant way to do this. So try them! You might just like them! For more information about functors, please read the introduction to the Commons Functor component. ReleasesBeanUtils Bean-Collections is distributed as an optional jar within the main beanutils distribution. For details, see the main BeanUtils website |