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 TgetData()inthashCode()static DeferPayload.BuilderMethods 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:
toSpecificationin classIncrementalPayload- Returns:
- a map of this payload that strictly follows the spec
-
hashCode
public int hashCode()- Overrides:
hashCodein classIncrementalPayload
-
equals
- Overrides:
equalsin classIncrementalPayload
-
newDeferredItem
- Returns:
- a
DeferPayload.Builderthat can be used to create an instance ofDeferPayload
-