org.opentripplanner.transit.raptor.api.transit.TransitArrival 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.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; }
};
}
}