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

org.opentripplanner.api.mapping.BookingTimeMapper Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.api.mapping;

import org.opentripplanner.api.model.ApiBookingTime;
import org.opentripplanner.model.BookingTime;

public class BookingTimeMapper {

  static ApiBookingTime mapBookingTime(BookingTime time) {
    if (time == null) {
      return null;
    }
    return new ApiBookingTime(time.getTime().toSecondOfDay(), time.getDaysPrior());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy