Class AbstractCalendarEvent.StartDateComparator<T extends CalendarEventInterface>

  • Type Parameters:
    T - subclass of AbstractCalendarEvent
    All Implemented Interfaces:
    java.util.Comparator<T>
    Enclosing class:
    AbstractCalendarEvent

    public static class AbstractCalendarEvent.StartDateComparator<T extends CalendarEventInterface>
    extends java.lang.Object
    implements java.util.Comparator<T>
    This comparator allow sorting of calendar event in chronological order using only their start date
    Since:
    jcms-4.1.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T ce1, T ce2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • StartDateComparator

        public StartDateComparator()
    • Method Detail

      • compare

        public int compare​(T ce1,
                           T ce2)
        Specified by:
        compare in interface java.util.Comparator<T extends CalendarEventInterface>