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

org.opentripplanner.transit.raptor.api.transit.TransitArrival Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.transit.raptor.api.transit;

/**
 * @param  The TripSchedule type defined by the user of the raptor API.
 */
public interface TransitArrival {
    T trip();
    int stop();
    int arrivalTime();

    static  TransitArrival create(
            final T trip,
            final int stop,
            final int time
    ) {
        return new TransitArrival<>() {
            @Override public T trip() { return trip; }
            @Override public int stop() { return stop; }
            @Override public int arrivalTime() { return time; }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy