Package graphql.incremental
Class DeferPayload
java.lang.Object
graphql.incremental.IncrementalPayload
graphql.incremental.DeferPayload
Represents a defer payload
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> @Nullable T
getData()
int
hashCode()
static DeferPayload.Builder
Methods inherited from class graphql.incremental.IncrementalPayload
errorsToSpec, getErrors, getExtensions, getLabel, getPath
-
Method Details
-
getData
public <T> @Nullable T getData()- Type Parameters:
T
- the type to cast the result to- Returns:
- the resolved data
-
toSpecification
- Overrides:
toSpecification
in classIncrementalPayload
- Returns:
- a map of this payload that strictly follows the spec
-
hashCode
public int hashCode()- Overrides:
hashCode
in classIncrementalPayload
-
equals
- Overrides:
equals
in classIncrementalPayload
-
newDeferredItem
- Returns:
- a
DeferPayload.Builder
that can be used to create an instance ofDeferPayload
-