All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.transit.model.framework.DefaultEntityContext Maven / Gradle / Ivy

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