public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<T> |
concat(java.util.List<T> l1,
java.util.List<T> l2) |
static graphql.execution.ResultPath |
concatPaths(graphql.execution.ResultPath parent,
graphql.execution.ResultPath child) |
static graphql.execution.DataFetcherResult<java.lang.Object> |
mkDFR(java.lang.Object value,
java.util.List<graphql.GraphQLError> errors,
java.lang.Object localContext) |
static java.lang.Object |
mkDFRFromFetchedResult(java.util.List<graphql.GraphQLError> errors,
java.lang.Object value) |
static java.util.Map<java.lang.String,java.lang.Object> |
mkMap(java.lang.Object... args)
Makes a map of the args
|
static <T,U extends java.lang.Comparable<? super U>> |
sort(java.util.Collection<T> toBeSorted,
java.util.function.Function<? super T,? extends U> keyExtractor) |
static graphql.schema.GraphQLInputType |
unwrapNonNull(graphql.schema.GraphQLInputType inputType) |
static graphql.schema.GraphQLInputType |
unwrapOneAndAllNonNull(graphql.schema.GraphQLInputType inputType)
This will unwrap one level of List ness and ALL levels of NonNull ness.
|
public static graphql.schema.GraphQLInputType unwrapOneAndAllNonNull(graphql.schema.GraphQLInputType inputType)
inputType - the type to unwrappublic static graphql.schema.GraphQLInputType unwrapNonNull(graphql.schema.GraphQLInputType inputType)
public static java.lang.Object mkDFRFromFetchedResult(java.util.List<graphql.GraphQLError> errors,
java.lang.Object value)
public static graphql.execution.DataFetcherResult<java.lang.Object> mkDFR(java.lang.Object value,
java.util.List<graphql.GraphQLError> errors,
java.lang.Object localContext)
public static <T> java.util.List<T> concat(java.util.List<T> l1,
java.util.List<T> l2)
public static <T,U extends java.lang.Comparable<? super U>> java.util.List<T> sort(java.util.Collection<T> toBeSorted,
java.util.function.Function<? super T,? extends U> keyExtractor)
public static graphql.execution.ResultPath concatPaths(graphql.execution.ResultPath parent,
graphql.execution.ResultPath child)
public static java.util.Map<java.lang.String,java.lang.Object> mkMap(java.lang.Object... args)
args - must be an key / value array with String keys as the even params and values as then odd params