Package graphql
Class ExecutionResultImpl.Builder<T extends ExecutionResultImpl.Builder<T>>
java.lang.Object
graphql.ExecutionResultImpl.Builder<T>
- All Implemented Interfaces:
ExecutionResult.Builder<T>
- Direct Known Subclasses:
IncrementalExecutionResultImpl.Builder
- Enclosing class:
ExecutionResultImpl
public static class ExecutionResultImpl.Builder<T extends ExecutionResultImpl.Builder<T>>
extends Object
implements ExecutionResult.Builder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddError
(GraphQLError error) Adds the error to any existing the errors for this builderaddErrors
(List<GraphQLError> errors) Adds the error list to any existing the errors for this builderaddExtension
(String key, Object value) Adds a new entry into the extensions map for this builderbuild()
Sets new data into the buildererrors
(List<GraphQLError> errors) Sets error list as the errors for this builderextensions
(Map<Object, Object> extensions) Sets the extension map for this builderfrom
(ExecutionResult executionResult) Sets values into the builder based on a previousExecutionResult
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Description copied from interface:ExecutionResult.Builder
Sets values into the builder based on a previousExecutionResult
- Specified by:
from
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
executionResult
- the previousExecutionResult
- Returns:
- the builder
-
data
Description copied from interface:ExecutionResult.Builder
Sets new data into the builder- Specified by:
data
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
data
- the data to use- Returns:
- the builder
-
errors
Description copied from interface:ExecutionResult.Builder
Sets error list as the errors for this builder- Specified by:
errors
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
errors
- the errors to use- Returns:
- the builder
-
addErrors
Description copied from interface:ExecutionResult.Builder
Adds the error list to any existing the errors for this builder- Specified by:
addErrors
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
errors
- the errors to add- Returns:
- the builder
-
addError
Description copied from interface:ExecutionResult.Builder
Adds the error to any existing the errors for this builder- Specified by:
addError
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
error
- the error to add- Returns:
- the builder
-
extensions
Description copied from interface:ExecutionResult.Builder
Sets the extension map for this builder- Specified by:
extensions
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
extensions
- the extensions to use- Returns:
- the builder
-
addExtension
Description copied from interface:ExecutionResult.Builder
Adds a new entry into the extensions map for this builder- Specified by:
addExtension
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Parameters:
key
- the key of the extension entryvalue
- the value of the extension entry- Returns:
- the builder
-
build
- Specified by:
build
in interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>
- Returns:
- a newly built
ExecutionResult
-