public class AndKt
| Modifier and Type | Method and Description |
|---|---|
static <V,E> Result<V,E> |
and(Result<? extends V,? extends E> $receiver,
Result<? extends V,? extends E> result)
Deprecated.
|
static <V,E> Result<V,E> |
and(Result<? extends V,? extends E> $receiver,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> result)
|
static <V,E,U> Result<U,E> |
andThen(Result<? extends V,? extends E> $receiver,
kotlin.jvm.functions.Function1<? super V,? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends U,? extends E>> transform)
Maps this
class Result to class Result by either applying the transform function
if this class Result is class Ok, or returning this class Err. |
public static <V,E> Result<V,E> and(Result<? extends V,? extends E> $receiver, Result<? extends V,? extends E> result)
public static <V,E> Result<V,E> and(Result<? extends V,? extends E> $receiver, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> result)
Returns result if this class Result is class Ok, otherwise this class Err.
Rust: Result.and
class Result,
class Ok,
class Err,
Result.andpublic static <V,E,U> Result<U,E> andThen(Result<? extends V,? extends E> $receiver, kotlin.jvm.functions.Function1<? super V,? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends U,? extends E>> transform)
Maps this class Result to class Result by either applying the transform function
if this class Result is class Ok, or returning this class Err.