com.liferay.portlet.calendar.util.comparator
Class EventTimeComparator
java.lang.Object
com.liferay.portlet.calendar.util.comparator.EventTimeComparator
- All Implemented Interfaces:
- Comparator<CalEvent>
public class EventTimeComparator
- extends Object
- implements Comparator<CalEvent>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventTimeComparator
public EventTimeComparator(TimeZone timeZone,
Locale locale)
compare
public int compare(CalEvent event1,
CalEvent event2)
- Specified by:
compare
in interface Comparator<CalEvent>
compareTitle
protected int compareTitle(CalEvent event1,
CalEvent event2)
getDuration
protected Long getDuration(CalEvent event)
getStartDate
protected Date getStartDate(CalEvent event,
TimeZone timeZone,
boolean repeating)