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

org.opentripplanner.model.BookingTime Maven / Gradle / Ivy

package org.opentripplanner.model;

import java.io.Serializable;
import java.time.LocalTime;

/**
 * Represents either an earliest or latest time a trip can be booked relative to the departure day
 * of the trip.
 */
public class BookingTime implements Serializable {
  private final LocalTime time;

  private final int daysPrior;

  public BookingTime(LocalTime time, int daysPrior) {
    this.time = time;
    this.daysPrior = daysPrior;
  }

  public LocalTime getTime() {
    return time;
  }

  public int getDaysPrior() {
    return daysPrior;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy