Failure

public final class Failure<S extends Object, F extends Object> extends Result<S, F>

Constructors

Link copied to clipboard
Result.Failure<S, F> Result.Failure<F extends Any>(F failure)

Functions

Link copied to clipboard
final Result<NewSuccess, F> flatMap<NewSuccess extends Any>(Function1<S, Result<NewSuccess, F>> onSuccess)
Link copied to clipboard
final F getFailure()
Link copied to clipboard
final Result<NewSuccess, F> map<NewSuccess extends Any>(Function1<S, NewSuccess> onSuccess)
Link copied to clipboard
final Result<S, NewFailure> mapFailure<NewFailure extends Any>(Function1<F, NewFailure> onFailure)

Properties

Link copied to clipboard
private final F failure