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

org.opentripplanner.api.model.ApiBookingTime Maven / Gradle / Ivy

package org.opentripplanner.api.model;

import java.io.Serializable;
import org.opentripplanner.model.base.ToStringBuilder;

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

    /**
     * The latest time at which the trip must be booked.
     * 

* Unit: seconds since midnight */ public final int time; /** * How many days in advance this trip must be booked. */ public final int daysPrior; public ApiBookingTime(int time, int daysPrior) { this.time = time; this.daysPrior = daysPrior; } @Override public String toString() { return ToStringBuilder.of(getClass()) .addNum("time", time) .addNum("daysPrior", time) .toString(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy