graphql.nadel.util.ExecutionPathUtils Maven / Gradle / Ivy
package graphql.nadel.util;
import graphql.Internal;
import graphql.execution.ExecutionPath;
import java.util.List;
@Internal
public class ExecutionPathUtils {
/**
* Returns true if the path ends with an integer segment eg /a/b[0]
*
* @param path the path to check
*
* @return true if its a list ending path
*/
@SuppressWarnings("RedundantIfStatement")
public static boolean isListEndingPath(ExecutionPath path) {
List