Package | Description |
---|---|
javascalautils |
Contains various utility classes translated from the Scala language.
|
Modifier and Type | Class and Description |
---|---|
class |
Left<L,R>
|
class |
Right<L,R>
|
Modifier and Type | Method and Description |
---|---|
<T> Either<T,R> |
LeftProjection.flatMap(java.util.function.Function<L,Left<T,R>> function)
|
<T> Either<L,T> |
RightProjection.flatMap(java.util.function.Function<R,Right<L,T>> function)
|
<T> Either<T,R> |
LeftProjection.map(java.util.function.Function<L,T> function)
|
<T> Either<L,T> |
RightProjection.map(java.util.function.Function<R,T> function)
|
Either<R,L> |
Right.swap()
Returns a
Left containing the value for this instance. |
Either<R,L> |
Either.swap()
|
Either<R,L> |
Left.swap()
Returns a
Right containing the value for this instance. |
<R> Either<T,R> |
None.toLeft(java.util.function.Supplier<R> right)
Returns a
Right containing the value from the provided supplier. |
<R> Either<T,R> |
Option.toLeft(java.util.function.Supplier<R> right)
|
<R> Either<T,R> |
Some.toLeft(java.util.function.Supplier<R> right)
Returns a
Left containing the value of this instance. |
<L> Either<L,T> |
None.toRight(java.util.function.Supplier<L> left)
Returns a
Left containing the value from the provided supplier. |
<L> Either<L,T> |
Option.toRight(java.util.function.Supplier<L> left)
|
<L> Either<L,T> |
Some.toRight(java.util.function.Supplier<L> left)
Returns a
Right containing the value of this instance. |
Modifier and Type | Method and Description |
---|---|
Option<Either<L,R>> |
LeftProjection.filter(java.util.function.Predicate<L> predicate)
|
Option<Either<L,R>> |
RightProjection.filter(java.util.function.Predicate<R> predicate)
|
Copyright © 2016, Peter Nerg Apache License v2.0