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

org.opentripplanner.routing.impl.PathWeightComparator Maven / Gradle / Ivy

package org.opentripplanner.routing.impl;

import java.util.Comparator;

import org.opentripplanner.routing.spt.GraphPath;

public class PathWeightComparator implements Comparator {

    @Override
    public int compare(GraphPath o1, GraphPath o2) {
        return (int) (o1.getWeight() - o2.getWeight());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy