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

org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLStopOnTripModel Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.ext.legacygraphqlapi.model;

import org.opentripplanner.model.StopLocation;
import org.opentripplanner.model.Trip;

/**
 * Class that contains a {@link Stop} on a {@link Trip}.
 */
public class LegacyGraphQLStopOnTripModel {

    /**
     * Stop that should be on the trip but technically it's possible that it isn't or that it's
     * null.
     */
    private final StopLocation stop;

    /**
     * Trip that should contain the stop but technically it's possible that the stop isn't on the
     * trip and it's also possible that the trip is null.
     */
    private final Trip trip;

    public LegacyGraphQLStopOnTripModel(StopLocation stop, Trip trip) {
        this.stop = stop;
        this.trip = trip;
    }

    public StopLocation getStop() {
        return stop;
    }

    public Trip getTrip() {
        return trip;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy