]>
Commit | Line | Data |
---|---|---|
1 | package ro.ieval.unical; | |
2 | ||
3 | import java.util.Comparator; | |
4 | ||
5 | public class EventComparator implements Comparator<Event> { | |
6 | ||
7 | @Override | |
8 | public int compare(Event lhs, Event rhs) { | |
9 | // TODO Auto-generated method stub | |
10 | if(lhs.dtstart<rhs.dtstart) return -1; | |
11 | if(lhs.dtstart==rhs.dtstart) return 0; | |
12 | return 1; | |
13 | } | |
14 | ||
15 | } |