| Package | Description |
|---|---|
| com.m3.scalaflavor4j |
| Modifier and Type | Class and Description |
|---|---|
class |
Left<L,R>
The left side of the disjoint union, as opposed to the Right side.
|
class |
Right<L,R>
The right side of the disjoint union, as opposed to the `Left` side.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Either<L,R> |
Left.apply(Option<L> value) |
static <L,R> Either<L,R> |
Right.apply(Option<R> value) |
static <L,R> Either<L,R> |
Right.apply(R value) |
Either<Throwable,R> |
ExceptionControl.Catch.either(Function0<R> block)
Apply this catch logic to the supplied body, mapping the result into
Either[Throwable, T] - Left(exception) if an exception was caught,
Right(T) otherwise.
|
Either<R,L> |
Right.swap() |
Either<R,L> |
Left.swap() |
abstract Either<R,L> |
Either.swap()
If this is a Left, then return the left value in Right or vice versa.
|
Copyright © 2015. All rights reserved.