Result

public class Result<SuccessType extends Object, FailureType extends Object>

Types

Link copied to clipboard
public final class Failure<S extends Object, F extends Object> extends Result<S, F>
Link copied to clipboard
public final class Success<S extends Object, F extends Object> extends Result<S, F>

Functions

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

Inheritors

Link copied to clipboard
Link copied to clipboard