]> iEval git - unical.git/commitdiff
Add EventComparator
authorPetru Trimbitas <l3asketballplayer@yahoo.com>
Sun, 9 Jun 2013 08:38:58 +0000 (11:38 +0300)
committerPetru Trimbitas <l3asketballplayer@yahoo.com>
Sun, 9 Jun 2013 08:38:58 +0000 (11:38 +0300)
src/ro/ieval/unical/EventComparator.java [new file with mode: 0644]

diff --git a/src/ro/ieval/unical/EventComparator.java b/src/ro/ieval/unical/EventComparator.java
new file mode 100644 (file)
index 0000000..3fbb35a
--- /dev/null
@@ -0,0 +1,15 @@
+package ro.ieval.unical;
+
+import java.util.Comparator;
+
+public class EventComparator implements Comparator<Event> {
+
+       @Override
+       public int compare(Event lhs, Event rhs) {
+               // TODO Auto-generated method stub
+               if(lhs.dtstart<rhs.dtstart) return -1;
+               if(lhs.dtstart==rhs.dtstart) return 0;
+               return 1;
+       }
+
+}
This page took 0.028119 seconds and 4 git commands to generate.