Package org.jxls.util

Class OrderByComparator<T>

java.lang.Object
org.jxls.util.OrderByComparator<T>
All Implemented Interfaces:
Comparator<T>

public class OrderByComparator<T> extends Object implements Comparator<T>

An OrderByComparator is a Comparator that is capable of comparing two objects based on a dynamic list of properties of the objects of type T. It can sort any of its properties ascending or descending, and for any of its properties, it can place nulls first or last. Like SQL, this will default to ascending. Nulls default to last if ascending, and first if descending.