public abstract class Either<A,B> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Either.Type |
Constructor and Description |
---|
Either() |
Modifier and Type | Method and Description |
---|---|
abstract A |
left() |
static <A,B> Either<A,B> |
newLeft(A a) |
static <A,B> Either<A,B> |
newRight(B b) |
abstract B |
right() |
abstract Either.Type |
type() |
public abstract Either.Type type()
public abstract A left()
public abstract B right()
public static <A,B> Either<A,B> newLeft(A a)
public static <A,B> Either<A,B> newRight(B b)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.