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

org.opentripplanner.client.parameters.InputBannedBuilder Maven / Gradle / Ivy

There is a newer version: 0.1.7
Show newest version
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