public interface CastResult<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
CastResult.Fail<T> |
static class |
CastResult.Nil |
static class |
CastResult.Ok<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> CastResult<T> |
fail(java.lang.String message) |
T |
get() |
boolean |
isOk() |
static <T> CastResult<T> |
nil() |
static <T> CastResult<T> |
ok(T value) |
T get()
boolean isOk()
static <T> CastResult<T> ok(T value)
static <T> CastResult<T> fail(java.lang.String message)
static <T> CastResult<T> nil()