Package graphql.incremental
Class StreamPayload
java.lang.Object
graphql.incremental.IncrementalPayload
graphql.incremental.StreamPayload
Represents a stream payload
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> @Nullable List
<T> getItems()
int
hashCode()
static StreamPayload.Builder
Methods inherited from class graphql.incremental.IncrementalPayload
errorsToSpec, getErrors, getExtensions, getLabel, getPath
-
Method Details
-
getItems
- Type Parameters:
T
- the type to cast the result to- Returns:
- the resolved list of items
-
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
-
newStreamedItem
- Returns:
- a
StreamPayload.Builder
that can be used to create an instance ofStreamPayload
-