Package | Description |
---|---|
javaslang.control |
Modifier and Type | Method and Description |
---|---|
<L2,R2> Either.LeftProjection<L2,R2> |
Either.LeftProjection.bimap(Function<? super L,? extends L2> leftMapper,
Function<? super R,? extends R2> rightMapper) |
<U> Either.LeftProjection<U,R> |
Either.LeftProjection.flatMap(Function<? super L,? extends Either.LeftProjection<? extends U,R>> mapper)
FlatMaps this LeftProjection.
|
default Either.LeftProjection<L,R> |
Either.left()
Returns a LeftProjection of this Either.
|
<U> Either.LeftProjection<U,R> |
Either.LeftProjection.map(Function<? super L,? extends U> mapper)
Maps the left value if the projected Either is a Left.
|
Either.LeftProjection<L,R> |
Either.LeftProjection.orElse(Either.LeftProjection<? extends L,? extends R> other) |
Either.LeftProjection<L,R> |
Either.LeftProjection.orElse(Supplier<? extends Either.LeftProjection<? extends L,? extends R>> supplier) |
Either.LeftProjection<L,R> |
Either.LeftProjection.peek(Consumer<? super L> action)
Applies the given action to the value if the projected either is a Left.
|
Modifier and Type | Method and Description |
---|---|
Option<Either.LeftProjection<L,R>> |
Either.LeftProjection.filter(Predicate<? super L> predicate)
Returns
Some value of type L if this is a left projection of a Left value and the predicate
applies to the underlying value. |
Modifier and Type | Method and Description |
---|---|
Either.LeftProjection<L,R> |
Either.LeftProjection.orElse(Either.LeftProjection<? extends L,? extends R> other) |
Modifier and Type | Method and Description |
---|---|
<U> Either.LeftProjection<U,R> |
Either.LeftProjection.flatMap(Function<? super L,? extends Either.LeftProjection<? extends U,R>> mapper)
FlatMaps this LeftProjection.
|
Either.LeftProjection<L,R> |
Either.LeftProjection.orElse(Supplier<? extends Either.LeftProjection<? extends L,? extends R>> supplier) |
<U> U |
Either.LeftProjection.transform(Function<? super Either.LeftProjection<L,R>,? extends U> f)
Transforms this
LeftProjection . |
Copyright © 2016. All Rights Reserved.