| Package | Description |
|---|---|
| org.mule.runtime.api.functional |
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Either<L,R> |
Either.empty()
Creates an
Either that doesn't have any left or right value. |
static <L,R> Either<L,R> |
Either.left(L value)
Creates an
Either with a left value. |
static <L,R> Either<L,R> |
Either.left(L value,
Class<R> rightClass)
Creates an
Either with a left value and forcing a class for its empty right. |
<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(Class<L> leftClass,
R value)
Creates an
Either with a right value and forcing a class for its empty left. |
static <L,R> Either<L,R> |
Either.right(R value)
Creates an
Either with a right value. |
Copyright © 2025 MuleSoft, Inc.. All rights reserved.