Package graphql

Class GraphQLContext.Builder

  • Enclosing class:
    GraphQLContext

    public static class GraphQLContext.Builder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GraphQLContext build()  
      GraphQLContext.Builder of​(GraphQLContext graphQLContext)
      Adds all of the values in the map into the context builder.
      GraphQLContext.Builder of​(GraphQLContext.Builder graphQLContextBuilder)
      Adds all of the values in the map into the context builder.
      GraphQLContext.Builder of​(java.lang.Object key1, java.lang.Object value1)  
      GraphQLContext.Builder of​(java.lang.Object key1, java.lang.Object value1, java.lang.Object key2, java.lang.Object value2)  
      GraphQLContext.Builder of​(java.lang.Object key1, java.lang.Object value1, java.lang.Object key2, java.lang.Object value2, java.lang.Object key3, java.lang.Object value3)  
      GraphQLContext.Builder of​(java.lang.Object key1, java.lang.Object value1, java.lang.Object key2, java.lang.Object value2, java.lang.Object key3, java.lang.Object value3, java.lang.Object key4, java.lang.Object value4)  
      GraphQLContext.Builder of​(java.lang.Object key1, java.lang.Object value1, java.lang.Object key2, java.lang.Object value2, java.lang.Object key3, java.lang.Object value3, java.lang.Object key4, java.lang.Object value4, java.lang.Object key5, java.lang.Object value5)  
      GraphQLContext.Builder of​(java.util.Map<?,​java.lang.Object> mapOfContext)
      Adds all of the values in the map into the context builder.
      GraphQLContext.Builder put​(java.lang.Object key1, java.lang.Object value1)  
      GraphQLContext.Builder putAll​(java.util.Map<?,​java.lang.Object> mapOfContext)
      Adds all of the values in the map into the context builder.
      • Methods inherited from class java.lang.Object

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

      • Builder

        public Builder()
    • Method Detail

      • of

        public GraphQLContext.Builder of​(java.lang.Object key1,
                                         java.lang.Object value1,
                                         java.lang.Object key2,
                                         java.lang.Object value2)
      • of

        public GraphQLContext.Builder of​(java.lang.Object key1,
                                         java.lang.Object value1,
                                         java.lang.Object key2,
                                         java.lang.Object value2,
                                         java.lang.Object key3,
                                         java.lang.Object value3)
      • of

        public GraphQLContext.Builder of​(java.lang.Object key1,
                                         java.lang.Object value1,
                                         java.lang.Object key2,
                                         java.lang.Object value2,
                                         java.lang.Object key3,
                                         java.lang.Object value3,
                                         java.lang.Object key4,
                                         java.lang.Object value4)
      • of

        public GraphQLContext.Builder of​(java.lang.Object key1,
                                         java.lang.Object value1,
                                         java.lang.Object key2,
                                         java.lang.Object value2,
                                         java.lang.Object key3,
                                         java.lang.Object value3,
                                         java.lang.Object key4,
                                         java.lang.Object value4,
                                         java.lang.Object key5,
                                         java.lang.Object value5)
      • of

        public GraphQLContext.Builder of​(java.util.Map<?,​java.lang.Object> mapOfContext)
        Adds all of the values in the map into the context builder. All keys and values MUST be non null
        Parameters:
        mapOfContext - the map to put into context
        Returns:
        this builder
      • putAll

        public GraphQLContext.Builder putAll​(java.util.Map<?,​java.lang.Object> mapOfContext)
        Adds all of the values in the map into the context builder. All keys and values MUST be non null
        Parameters:
        mapOfContext - the map to put into context
        Returns:
        this builder
      • of

        public GraphQLContext.Builder of​(GraphQLContext graphQLContext)
        Adds all of the values in the map into the context builder. All keys and values MUST be non null
        Parameters:
        graphQLContext - a previous graphql context
        Returns:
        this builder
      • of

        public GraphQLContext.Builder of​(GraphQLContext.Builder graphQLContextBuilder)
        Adds all of the values in the map into the context builder. All keys and values MUST be non null
        Parameters:
        graphQLContextBuilder - a graphql context builder
        Returns:
        this builder