public static final class JobListRefiner.JobComparator extends java.lang.Object implements java.util.Comparator<UWSJob>
UWSJob
instances by using only their creation
date/time. The most recently created job is considered as inferior. So,
this comparator aims to sort jobs by descending creation date/time.
WARNING! It must be ensured that all compared jobs have always a NOT-NULL creationTime attribute. Otherwise this comparator may fail or return an incorrect value.
Constructor and Description |
---|
JobComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(UWSJob o1,
UWSJob o2) |