public class TimePeriodComparator extends java.lang.Object implements java.util.Comparator<TimePeriod>
Comparator
for TimePeriod
s
These are primarily ordered by start time, though if the start
times are the same the end date will distinguish.Constructor and Description |
---|
TimePeriodComparator() |
TimePeriodComparator(boolean reverse) |
Modifier and Type | Method and Description |
---|---|
int |
compare(TimePeriod arg0,
TimePeriod arg1) |
public TimePeriodComparator()
public TimePeriodComparator(boolean reverse)
public int compare(TimePeriod arg0, TimePeriod arg1)
compare
in interface java.util.Comparator<TimePeriod>