T1
- The expected format of the data.T2
- The expected format of the error.public class GraphQLResponse<T1,T2>
extends java.lang.Object
Constructor and Description |
---|
GraphQLResponse() |
Modifier and Type | Method and Description |
---|---|
T1 |
getData()
Returns the data for this GraphQL response.
|
java.util.List<T2> |
getErrors()
Returns the list of errors for this GraphQL response.
|
boolean |
hasError()
Returns if this GraphQL response has any errors.
|
@Nullable public T1 getData()
@NonNull public java.util.List<T2> getErrors()
public boolean hasError()
true
if this GraphQL response contains any errors, false
otherwise.