This comparator compares two beans by the specified bean property. It is also possible to compare beans based on nested, indexed, combined, mapped bean properties. Please see the {@link PropertyUtilsBean} documentation for all property name possibilities.
Note: The BeanComparator passes the values of the specified bean property to a ComparableComparator, if no comparator is specified in the constructor. If you are comparing two beans based on a property that could contain "null" values, a suitable Comparator
or ComparatorChain
should be supplied in the constructor.
@author
Eric Pugh
@author Tim O'Brien