Package aQute.bnd.service.result
@Version("1.1.0")
package aQute.bnd.service.result
-
ClassDescriptionFunction interface that allows exceptions.Err<V,
E> This class represents the Err side of @{link Result}.Function interface that allows exceptions.Ok<V,E> This class represents the Ok side of @{link Result}.Result<V,E> The Result type is an alternative way of chaining together functions in a functional programming style while hiding away error handling structures such as try-catch-blocks and conditionals.
Instead of adding a throws declaration to a function, the return type of the function is instead set to Result<V, E> where V is the original return type, i.e.