Index

C F G I M R S 
All Classes and Interfaces|All Packages

C

com.goodcode.online.result - package com.goodcode.online.result
 

F

failure(Failure) - Static method in class com.goodcode.online.result.Result
Creates a new failure result.
flat(Function<Success, Result<NewSuccess, NewFailure>>, Function<Failure, Result<NewSuccess, NewFailure>>) - Method in class com.goodcode.online.result.Result
Flat maps both the success and failure values to new values using the given mapper functions, depending on whether this is a success or failure result.
flatFailure(Function<Failure, Result<Success, NewFailure>>) - Method in class com.goodcode.online.result.Result
Flat maps the failure value to a new failure <NewFailure> using the given mapper function, if this is a failure result.
flatSuccess(Function<Success, Result<NewSuccess, Failure>>) - Method in class com.goodcode.online.result.Result
Flat maps the success value to a new Success <NewSuccess> the given mapper function, if this is a success result.

G

get(Function<Success, Value>, Function<Failure, Value>) - Method in class com.goodcode.online.result.Result
Applies the appropriate function to the success or failure value and returns the result.
getFailure() - Method in class com.goodcode.online.result.Result
Gets the failure result, or null if this is a success.
getSuccess() - Method in class com.goodcode.online.result.Result
Gets the success result, or null if this is a failure.

I

ifFailure(Consumer<Failure>) - Method in class com.goodcode.online.result.Result
If this is a failure result, applies the given consumer to the failure value.
ifSuccess(Consumer<Success>) - Method in class com.goodcode.online.result.Result
If this is a success result, applies the given consumer to the success value.
isFailure() - Method in class com.goodcode.online.result.Result
Checks if this is a failure result.
isSuccess() - Method in class com.goodcode.online.result.Result
Checks if this is a success result.

M

map(Function<Success, NewSuccess>, Function<Failure, NewFailure>) - Method in class com.goodcode.online.result.Result
Maps both the success and failure values to new values using the given mapper functions, depending on whether this is a success or failure result.
mapFailure(Function<Failure, NewFailure>) - Method in class com.goodcode.online.result.Result
Maps the failure value to a new failure value of type <NewFailure> using the given mapper function, if this is a failure result.
mapSuccess(Function<Success, NewSuccess>) - Method in class com.goodcode.online.result.Result
Maps the success value to a new success value of type <NewSuccess> using the given mapper function, if this is a success result.

R

Result<Success,Failure> - Class in com.goodcode.online.result
A monad that represents the result of an operation, which can either be a success or a failure.

S

success(Success) - Static method in class com.goodcode.online.result.Result
Creates a new success result.
C F G I M R S 
All Classes and Interfaces|All Packages