org.opentripplanner.routing.impl.DurationComparator Maven / Gradle / Ivy
package org.opentripplanner.routing.impl;
import org.opentripplanner.routing.spt.GraphPath;
import java.util.Comparator;
public class DurationComparator implements Comparator {
@Override
public int compare(GraphPath o1, GraphPath o2) {
return o1.getDuration() - o2.getDuration();
}
}