|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.F.Either<A,B>
public static class F.Either<A,B>
Represents a value of one of two possible types (a disjoint union)
Field Summary | |
---|---|
F.Option<A> |
left
The left value. |
F.Option<B> |
right
The right value. |
Method Summary | ||
---|---|---|
static
|
Left(A value)
Constructs a left side of the disjoint union, as opposed to the Right side. |
|
static
|
Right(B value)
Constructs a right side of the disjoint union, as opposed to the Left side. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final F.Option<A> left
public final F.Option<B> right
Method Detail |
---|
public static <A,B> F.Either<A,B> Left(A value)
value
- The value of the left side
public static <A,B> F.Either<A,B> Right(B value)
value
- The value of the right side
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |