Package graphql
Class GraphqlErrorHelper
- java.lang.Object
-
- graphql.GraphqlErrorHelper
-
public class GraphqlErrorHelper extends java.lang.ObjectThis little helper allows GraphQlErrors to implement common things (hashcode/ equals ) and to specification more easily
-
-
Constructor Summary
Constructors Constructor Description GraphqlErrorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(GraphQLError dis, java.lang.Object o)static inthashCode(GraphQLError dis)static java.lang.Objectlocation(SourceLocation location)Positive integers starting from 1 required for error locations, from the spec ...static java.lang.Objectlocations(java.util.List<SourceLocation> locations)static java.util.Map<java.lang.String,java.lang.Object>toSpecification(GraphQLError error)
-
-
-
Method Detail
-
toSpecification
public static java.util.Map<java.lang.String,java.lang.Object> toSpecification(GraphQLError error)
-
locations
public static java.lang.Object locations(java.util.List<SourceLocation> locations)
-
location
public static java.lang.Object location(SourceLocation location)
Positive integers starting from 1 required for error locations, from the spec ...- Parameters:
location- the source location in play- Returns:
- a value for source location of the error
-
hashCode
public static int hashCode(GraphQLError dis)
-
equals
public static boolean equals(GraphQLError dis, java.lang.Object o)
-
-