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