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

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

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

import org.opentripplanner.model.Route;
import org.opentripplanner.model.StopLocation;

/**
 * Class that contains a {@link Stop} on a {@link Route}.
 */
public class LegacyGraphQLStopOnRouteModel {

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

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

    public LegacyGraphQLStopOnRouteModel(StopLocation stop, Route route) {
        this.stop = stop;
        this.route = route;
    }

    public StopLocation getStop() {
        return stop;
    }

    public Route getRoute() {
        return route;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy