Package graphql.incremental
Class DeferPayload
- java.lang.Object
-
- graphql.incremental.IncrementalPayload
-
- graphql.incremental.DeferPayload
-
@ExperimentalApi public class DeferPayload extends IncrementalPayload
Represents a defer payload
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeferPayload.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
<T> @Nullable T
getData()
int
hashCode()
static DeferPayload.Builder
newDeferredItem()
java.util.Map<java.lang.String,java.lang.Object>
toSpecification()
-
Methods inherited from class graphql.incremental.IncrementalPayload
errorsToSpec, getErrors, getExtensions, getLabel, getPath
-
-
-
-
Method Detail
-
getData
public <T> @Nullable T getData()
- Type Parameters:
T
- the type to cast the result to- Returns:
- the resolved data
-
toSpecification
public java.util.Map<java.lang.String,java.lang.Object> 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
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classIncrementalPayload
-
newDeferredItem
public static DeferPayload.Builder newDeferredItem()
- Returns:
- a
DeferPayload.Builder
that can be used to create an instance ofDeferPayload
-
-