monkeyfdude / caldav4j

Automatically exported from code.google.com/p/caldav4j
0 stars 0 forks source link

CalendarComparator patch #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
from Roberto Polli:

wrote a small CalendarComparator class. here a simple usage:
 /** sort a Calendar list by date
    *
    * @param calendars
    * @return
    */
   public List<Calendar> sortByStartDate(List<Calendar> calendars) {
       Collections.sort(calendars, new CalendarComparator());
       return calendars;

   }

attached  the class code
http://caldav4j.googlegroups.com/web/CalendarComparator.java

Peace, R.

Original issue reported on code.google.com by bobbyru...@gmail.com on 28 Nov 2007 at 7:06

GoogleCodeExporter commented 9 years ago
now in trunk

Original comment by robipo...@gmail.com on 7 Sep 2008 at 2:01