
org.opentripplanner.raptor.api.model.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
The newest version!
package org.opentripplanner.raptor.api.model;
/**
* @param The TripSchedule type defined by the user of the raptor API.
*/
public interface TransitArrival {
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;
}
};
}
T trip();
int stop();
int arrivalTime();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy