
org.opentripplanner.ext.flex.trip.FlexTripBuilder 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.ext.flex.trip;
import org.opentripplanner.transit.model.framework.AbstractEntityBuilder;
import org.opentripplanner.transit.model.framework.FeedScopedId;
import org.opentripplanner.transit.model.timetable.Trip;
public abstract class FlexTripBuilder, B extends FlexTripBuilder>
extends AbstractEntityBuilder {
private Trip trip;
FlexTripBuilder(FeedScopedId id) {
super(id);
}
FlexTripBuilder(T original) {
super(original);
this.trip = original.getTrip();
}
abstract B instance();
public B withTrip(Trip trip) {
this.trip = trip;
return instance();
}
public Trip trip() {
return trip;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy