-
final record
A record representing the Left variant of an Either.
final record
A record representing the Right variant of an Either.
Combines two Either instances using the given combiner function if both are Right.
Converts a computation that might raise an exception of type `E` into an `Either` value.
Transforms the value in Right using the given function that returns another Either, if this is a Right.
Creates an instance of Left.
Transforms the value in Right using the given function if this is a Right, otherwise returns the current Left.
Returns this Either if it is a Right, otherwise returns the result of the given Supplier.
Creates an instance of Right.
Swaps the Left and Right types.
Combines two Either instances using the given combiner function if both are Right.
Transforms the value in Right using the given function that returns another Either, if this is a Right.
Returns this Either if it is a Right, otherwise returns the result of the given Supplier.
-