Package graphql
Interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
-
- All Known Implementing Classes:
ExecutionResultImpl.Builder
,IncrementalExecutionResultImpl.Builder
- Enclosing interface:
- ExecutionResult
public static interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
addError(GraphQLError error)
Adds the error to any existing the errors for this builderB
addErrors(java.util.List<GraphQLError> errors)
Adds the error list to any existing the errors for this builderB
addExtension(java.lang.String key, java.lang.Object value)
Adds a new entry into the extensions map for this builderExecutionResult
build()
B
data(java.lang.Object data)
Sets new data into the builderB
errors(java.util.List<GraphQLError> errors)
Sets error list as the errors for this builderB
extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
Sets the extension map for this builderB
from(ExecutionResult executionResult)
Sets values into the builder based on a previousExecutionResult
-
-
-
Method Detail
-
from
B from(ExecutionResult executionResult)
Sets values into the builder based on a previousExecutionResult
- Parameters:
executionResult
- the previousExecutionResult
- Returns:
- the builder
-
data
B data(java.lang.Object data)
Sets new data into the builder- Parameters:
data
- the data to use- Returns:
- the builder
-
errors
B errors(java.util.List<GraphQLError> errors)
Sets error list as the errors for this builder- Parameters:
errors
- the errors to use- Returns:
- the builder
-
addErrors
B addErrors(java.util.List<GraphQLError> errors)
Adds the error list to any existing the errors for this builder- Parameters:
errors
- the errors to add- Returns:
- the builder
-
addError
B addError(GraphQLError error)
Adds the error to any existing the errors for this builder- Parameters:
error
- the error to add- Returns:
- the builder
-
extensions
B extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
Sets the extension map for this builder- Parameters:
extensions
- the extensions to use- Returns:
- the builder
-
addExtension
B addExtension(java.lang.String key, java.lang.Object value)
Adds a new entry into the extensions map for this builder- Parameters:
key
- the key of the extension entryvalue
- the value of the extension entry- Returns:
- the builder
-
build
ExecutionResult build()
- Returns:
- a newly built
ExecutionResult
-
-