
org.opentripplanner.transit.model.basic.NoticeBuilder 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.basic;
import org.opentripplanner.transit.model.framework.AbstractEntityBuilder;
import org.opentripplanner.transit.model.framework.FeedScopedId;
public class NoticeBuilder extends AbstractEntityBuilder {
private String publicCode;
private String text;
NoticeBuilder(FeedScopedId id) {
super(id);
}
NoticeBuilder(Notice original) {
super(original);
this.publicCode = original.publicCode();
this.text = original.text();
}
public String publicCode() {
return publicCode;
}
public NoticeBuilder withPublicCode(String publicCode) {
this.publicCode = publicCode;
return this;
}
public String text() {
return text;
}
public NoticeBuilder withText(String text) {
this.text = text;
return this;
}
@Override
protected Notice buildFromValues() {
return new Notice(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy