Package | Description |
---|---|
org.mule.runtime.core.api.functional |
Modifier and Type | Method and Description |
---|---|
static <L,R> Either<L,R> |
Either.left(L value)
Creates an
Either with a left value. |
<T> Either<T,R> |
Either.mapLeft(Function<? super L,? extends T> func)
Allows to execute a function over the left value if it is present
|
<T> Either<L,T> |
Either.mapRight(Function<? super R,? extends T> func)
Allows to execute a function over the right value if it is present
|
static <L,R> Either<L,R> |
Either.right(R value)
Creates an
Either with a right value. |
Copyright © 2018. All rights reserved.