| Modifier and Type | Class and Description |
|---|---|
static class |
Either.Left<L,R>
The
Left type. |
static class |
Either.Right<L,R>
The
Right type. |
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Either<L,R> |
Either.left(L value)
Creates a left value.
|
static <L,R> Either<L,R> |
Either.left(L value,
Class<R> rightType)
Creates a left value.
|
static <L,R> Either<L,R> |
Either.right(R value)
Creates a right value.
|
static <L,R> Either<L,R> |
Either.right(R value,
Class<L> leftType)
Creates a right value.
|
Copyright © 2015. All rights reserved.