
org.opentripplanner.transit.model.framework.TransitBuilder 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 interface TransitBuilder, B extends TransitBuilder> {
/**
* Build a new object based on the values set in the builder. This method is NOT context aware -
* any context is not updated. Use the {@link TransitEntityBuilder#save()} method instead to
* build an object and store it in the context. This method is useful if you need to build an
* object which should be request scoped or used in a test.
*
* For value objects are stored as "part of" an entity, but OTP tries to reuse objects using the
* {@code Deduplicator}. This method may or may not be context aware, using a deduplicator to
* avoid unnecessary object creation.
*/
E build();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy