org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.view.StopArrivalViewAdapter Maven / Gradle / Ivy
package org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.view;
import org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule;
import org.opentripplanner.transit.raptor.api.view.ArrivalView;
/**
* Implement the {@link ArrivalView}.
*
* @param The TripSchedule type defined by the user of the raptor API.
*/
abstract class StopArrivalViewAdapter implements ArrivalView {
private final int round;
private final int stop;
StopArrivalViewAdapter(int round, int stop) {
this.round = round;
this.stop = stop;
}
@Override
public int stop() {
return stop;
}
@Override
public int round() {
return round;
}
@Override
public String toString() {
return asString();
}
}