public final class ErrorOr<T> extends Object
Optional, but if a value is not present, there is a GraphQlClientError instead.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
get() |
List<GraphQlClientError> |
getErrors() |
int |
hashCode() |
boolean |
isError() |
boolean |
isPresent() |
static <T> ErrorOr<T> |
of(T value) |
static <T> ErrorOr<T> |
ofErrors(List<GraphQlClientError> errors) |
String |
toString() |
public static <T> ErrorOr<T> of(T value)
public static <T> ErrorOr<T> ofErrors(List<GraphQlClientError> errors)
public boolean isPresent()
public boolean isError()
public T get()
public List<GraphQlClientError> getErrors()
Copyright © 2018–2020. All rights reserved.