Apache BeanComparator Tips

Null排序處理:Null > Non-Null (default)

new BeanComparator(“Bean的Attribute Name”, new NullComparator());

new BeanComparator([Bean的Attribute Name], NullComparator(true));

Continue reading Apache BeanComparator Tips

Advertisements