eu.future.earth.gwt.client.date.EventComparator Maven / Gradle / Ivy
package eu.future.earth.gwt.client.date;
import java.util.Comparator;
import java.util.Date;
public class EventComparator implements Comparator> {
public EventComparator() {
super();
}
public int compare(EventPanel arg0, EventPanel arg1) {
Date one = arg0.getStart();
Date two = arg1.getStart();
if (one != null) {
return one.compareTo(two);
}
return 0;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy