All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy