
org.opentripplanner.transit.model.framework.DefaultEntityContext 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.transit.model.framework;
public class DefaultEntityContext<
E extends AbstractTransitEntity, B extends AbstractEntityBuilder
>
implements EntityContext {
private final EntityById target;
public DefaultEntityContext(EntityById target) {
this.target = target;
}
@Override
public E save(B builder) {
E e = builder.build();
target.add(e);
return e;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy