org.opentripplanner.routing.impl.DurationComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.routing.impl;
import java.util.Comparator;
import org.opentripplanner.routing.spt.GraphPath;
public class DurationComparator implements Comparator {
@Override
public int compare(GraphPath o1, GraphPath o2) {
return o1.getDuration() - o2.getDuration();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy