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

org.opentripplanner.graph_builder.ConfiguredDataSource Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.graph_builder;

import java.util.Objects;
import org.opentripplanner.datastore.api.DataSource;
import org.opentripplanner.graph_builder.model.DataSourceConfig;

/**
 *
 * A pair linking together a data source and its custom configuration.
 */
public record ConfiguredDataSource(DataSource dataSource, T config) {
  public ConfiguredDataSource {
    Objects.requireNonNull(dataSource, "'dataSource' is required");
    Objects.requireNonNull(config, "'config' is required");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy