
org.opentripplanner.apis.gtfs.mapping.routerequest.ArgumentUtils Maven / Gradle / Ivy
The newest version!
package org.opentripplanner.apis.gtfs.mapping.routerequest;
import graphql.schema.DataFetchingEnvironment;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.annotation.Nullable;
import org.opentripplanner.apis.gtfs.generated.GraphQLTypes;
public class ArgumentUtils {
/**
* This methods returns list of modes and their costs from the argument structure:
* modes.transit.transit. This methods circumvents a bug in graphql-codegen as getting a list of
* input objects is not possible through using the generated types in {@link GraphQLTypes}.
*
* TODO this ugliness can be removed when the bug gets fixed
*/
@Nullable
static List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy