public abstract class Either<A,B> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Either.Left<A,B> |
static class |
Either.Right<A,B> |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
abstract A |
getLeft() |
abstract B |
getRight() |
int |
hashCode() |
abstract boolean |
isLeft() |
boolean |
isRight() |
static <A,B> Either<A,B> |
left(A a) |
static <A,B> Either<A,B> |
right(B b) |
String |
toString() |
protected final Object value
Copyright © 2018 SPF4J. All rights reserved.