Success

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

Constructors

Link copied to clipboard
Result.Success<S, F> Result.Success<S extends Any>(S success)

Functions

Link copied to clipboard
final Result<NewSuccess, F> flatMap<NewSuccess extends Any>(Function1<S, Result<NewSuccess, F>> onSuccess)
Link copied to clipboard
final S getSuccess()
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 S success