コード例 #1
0
 public int compareTo(CalendarElement element)
 {
     return(compareDate(this, element));
 }
コード例 #2
0
 // Returns 1 if x happened after y, -1 if y happened after x, 0 if same date
 public static int compareDate(CalendarElement x, CalendarElement y)
 {
     return(HarptosCalendar.FarthestInTime(x.Date, y.Date));
 }