| Package | Description |
|---|---|
| eu.hanskruse.noaber |
Noaber utility library.
|
| Modifier and Type | Method and Description |
|---|---|
static <E1,T1> Either<E1,T1> |
Either.empty()
Creates an empty
Either. |
static <E1,T1> Either<E1,T1> |
Either.ofLeft(E1 left)
Creates an
Either with the left value set. |
static <E1,T1> Either<E1,T1> |
Either.ofNullableLeft(E1 left)
Creates an
Either with the left value set.The left value may be null. |
static <E1,T1> Either<E1,T1> |
Either.ofNullableRight(T1 right)
Creates an
Either with the right value set. |
static <E1,T1> Either<E1,T1> |
Either.ofRight(T1 right)
Creates an
Either with the right value set. |
Either<T,E> |
Either.swap()
Gets a new
Either with left and right swapped. |
Copyright © 2021. All rights reserved.