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

org.opentripplanner.raptor.api.model.TransitArrival Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.raptor.api.model;

/**
 * @param  The TripSchedule type defined by the user of the raptor API.
 */
public interface TransitArrival {
  static  TransitArrival create(
    final T trip,
    final int stop,
    final int time
  ) {
    return new TransitArrival<>() {
      @Override
      public T trip() {
        return trip;
      }

      @Override
      public int stop() {
        return stop;
      }

      @Override
      public int arrivalTime() {
        return time;
      }
    };
  }

  T trip();

  int stop();

  int arrivalTime();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy