@Data(value=)
public abstract class DeriveResult<A>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
<B> DeriveResult<B> |
bind(java.util.function.Function<A,DeriveResult<B>> f) |
static <A> DeriveResult<A> |
error(DeriveMessage errorMsg) |
<B> DeriveResult<B> |
map(java.util.function.Function<A,B> f) |
abstract <R> R |
match(java.util.function.Function<DeriveMessage,R> error,
java.util.function.Function<A,R> result) |
static <A> DeriveResult<A> |
result(A result) |
public static <A> DeriveResult<A> error(DeriveMessage errorMsg)
public static <A> DeriveResult<A> result(A result)
public <B> DeriveResult<B> map(java.util.function.Function<A,B> f)
public <B> DeriveResult<B> bind(java.util.function.Function<A,DeriveResult<B>> f)
public abstract <R> R match(java.util.function.Function<DeriveMessage,R> error, java.util.function.Function<A,R> result)