public interface Result<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Result.Failure<T> |
static class |
Result.Success<V> |
| Modifier and Type | Method and Description |
|---|---|
static Result<java.lang.Void> |
forbidden(java.lang.String message) |
org.zalando.problem.Problem |
getProblem() |
T |
getValue() |
boolean |
isSuccessful() |
static Result<java.lang.Void> |
notFound(java.lang.String message) |
static Result<java.lang.Void> |
ok() |
static <T> Result<T> |
ok(T value) |
static <T> Result<T> |
problem(org.zalando.problem.Problem problem) |
boolean isSuccessful()
T getValue()
org.zalando.problem.Problem getProblem()
static <T> Result<T> problem(org.zalando.problem.Problem problem)
static Result<java.lang.Void> ok()
static <T> Result<T> ok(T value)
static Result<java.lang.Void> forbidden(java.lang.String message)
static Result<java.lang.Void> notFound(java.lang.String message)