public class Either<L,R> extends Object
| Modifier and Type | Method and Description |
|---|---|
L |
getLeft() |
R |
getRight() |
static <L,R> Either<L,R> |
left(L left) |
static <L,R> Either<L,R> |
right(R right) |
public static <L,R> Either<L,R> left(L left)
left - the value to be stored, must not be nullpublic static <L,R> Either<L,R> right(R right)
right - the value to be stored, must not be nullpublic L getLeft()
public R getRight()
Copyright © 2015 Atlassian. All rights reserved.