
org.opentripplanner.client.parameters.InputBannedBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp-client Show documentation
Show all versions of otp-client Show documentation
Java client for the OpenTripPlanner GraphQL API
package org.opentripplanner.client.parameters;
import java.util.Set;
public class InputBannedBuilder {
private Set routes = Set.of();
private Set agencies = Set.of();
private Set trips = Set.of();
private Set stops = Set.of();
private Set stopsHard = Set.of();
public InputBannedBuilder withRoutes(Set routes) {
this.routes = routes;
return this;
}
public InputBannedBuilder withAgencies(Set agencies) {
this.agencies = agencies;
return this;
}
public InputBannedBuilder withTrips(Set trips) {
this.trips = trips;
return this;
}
public InputBannedBuilder withStops(Set stops) {
this.stops = stops;
return this;
}
public InputBannedBuilder withStopsHard(Set stopsHard) {
this.stopsHard = stopsHard;
return this;
}
public InputBanned copy() {
return new InputBannedBuilder()
.withRoutes(this.routes)
.withAgencies(this.agencies)
.withTrips(this.trips)
.withStops(this.stops)
.withStopsHard(this.stopsHard)
.build();
}
public InputBanned build() {
return new InputBanned(routes, agencies, trips, stops, stopsHard);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy