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.BuilderSets values into the builder based on a previousExecutionResult- Specified by:
fromin interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Parameters:
executionResult- the previousExecutionResult- Returns:
- the builder
-
data
Description copied from interface:ExecutionResult.BuilderSets new data into the builder- Specified by:
datain interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Parameters:
data- the data to use- Returns:
- the builder
-
errors
Description copied from interface:ExecutionResult.BuilderSets error list as the errors for this builder- Specified by:
errorsin interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Parameters:
errors- the errors to use- Returns:
- the builder
-
addErrors
Description copied from interface:ExecutionResult.BuilderAdds the error list to any existing the errors for this builder- Specified by:
addErrorsin interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Parameters:
errors- the errors to add- Returns:
- the builder
-
addError
Description copied from interface:ExecutionResult.BuilderAdds the error to any existing the errors for this builder- Specified by:
addErrorin interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Parameters:
error- the error to add- Returns:
- the builder
-
extensions
Description copied from interface:ExecutionResult.BuilderSets the extension map for this builder- Specified by:
extensionsin interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Parameters:
extensions- the extensions to use- Returns:
- the builder
-
addExtension
Description copied from interface:ExecutionResult.BuilderAdds a new entry into the extensions map for this builder- Specified by:
addExtensionin 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:
buildin interfaceExecutionResult.Builder<T extends ExecutionResultImpl.Builder<T>>- Returns:
- a newly built
ExecutionResult
-