org.opentripplanner.model.BookingTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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 - 2025 Weber Informatics LLC | Privacy Policy