Class Util


  • public class Util
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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>>
      java.util.List<T>
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • unwrapOneAndAllNonNull

        public static graphql.schema.GraphQLInputType unwrapOneAndAllNonNull​(graphql.schema.GraphQLInputType inputType)
        This will unwrap one level of List ness and ALL levels of NonNull ness.
        Parameters:
        inputType - the type to unwrap
        Returns:
        an input type
      • unwrapNonNull

        public static graphql.schema.GraphQLInputType unwrapNonNull​(graphql.schema.GraphQLInputType inputType)
      • mkDFRFromFetchedResult

        public static java.lang.Object mkDFRFromFetchedResult​(java.util.List<graphql.GraphQLError> errors,
                                                              java.lang.Object value)
      • mkDFR

        public static graphql.execution.DataFetcherResult<java.lang.Object> mkDFR​(java.lang.Object value,
                                                                                  java.util.List<graphql.GraphQLError> errors,
                                                                                  java.lang.Object localContext)
      • concat

        public static <T> java.util.List<T> concat​(java.util.List<T> l1,
                                                   java.util.List<T> l2)
      • sort

        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)
      • concatPaths

        public static graphql.execution.ResultPath concatPaths​(graphql.execution.ResultPath parent,
                                                               graphql.execution.ResultPath child)
      • mkMap

        public static java.util.Map<java.lang.String,​java.lang.Object> mkMap​(java.lang.Object... args)
        Makes a map of the args
        Parameters:
        args - must be an key / value array with String keys as the even params and values as then odd params
        Returns:
        a map of the args