|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.util.Either<A,B>
public class Either<A,B>
A simple variant type.
Method Summary | ||
---|---|---|
A |
getLeft()
|
|
B |
getRight()
|
|
boolean |
isLeft()
|
|
static
|
mkLeft(A x)
|
|
static
|
mkRight(B x)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isLeft()
public A getLeft()
public B getRight()
public static <A,B> Either<A,B> mkLeft(A x)
public static <A,B> Either<A,B> mkRight(B x)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |