| java.lang.Object com.jidesoft.comparator.CalendarComparator
CalendarComparator | public class CalendarComparator implements Comparator(Code) | | Comparator for Calendar type. This is a singleton class. Call getInstance() to
get the comparator.
|
Constructor Summary | |
protected | CalendarComparator() Constructor.
Has protected access to prevent other clients creating instances of the
class ... |
CalendarComparator | protected CalendarComparator()(Code) | | Constructor.
Has protected access to prevent other clients creating instances of the
class ... it is stateless so we need only one instance.
|
compare | public int compare(Object o1, Object o2)(Code) | | Compares two Calendars.
Parameters: o1 - the first object to be compared Parameters: o2 - the second object to be compared 0 if a and b are equal, -1 if a is before b, 1 if a is after b. |
getInstance | public static CalendarComparator getInstance()(Code) | | Returns CalendarComparator singleton.
an instance of CalendarComparator. |
|
|