
org.opentripplanner.ext.flex.trip.ScheduledDeviatedTripBuilder Maven / Gradle / Ivy
The newest version!
package org.opentripplanner.ext.flex.trip;
import java.util.List;
import org.opentripplanner.model.StopTime;
import org.opentripplanner.transit.model.framework.FeedScopedId;
public class ScheduledDeviatedTripBuilder
extends FlexTripBuilder {
private List stopTimes;
ScheduledDeviatedTripBuilder(FeedScopedId id) {
super(id);
}
public ScheduledDeviatedTripBuilder(ScheduledDeviatedTrip original) {
super(original);
throw new IllegalStateException("Updating is not supported for ScheduledDeviatedTrip");
// TODO: implement copying
// this.stopTimes = original.stopTimes;
}
public ScheduledDeviatedTripBuilder withStopTimes(List stopTimes) {
this.stopTimes = stopTimes;
return this;
}
public List stopTimes() {
return stopTimes;
}
@Override
ScheduledDeviatedTripBuilder instance() {
return this;
}
@Override
protected ScheduledDeviatedTrip buildFromValues() {
return new ScheduledDeviatedTrip(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy