Package | Description |
---|---|
javascalautils |
Introducing some of the core concepts of Scala into Java.
The aim with these utility classes is to provide neat and concise programming patterns. Details and Wiki can be found at: https://github.com/pnerg/java-scala-util |
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. |
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 © 2015. All rights reserved.