public abstract class Either<A,B> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Either.Type |
Constructor and Description |
---|
Either() |
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 © 2015 JBoss, a division of Red Hat. All rights reserved.