cakoose.util
Class Either<L,R>

java.lang.Object
  extended by cakoose.util.Either<L,R>

public class Either<L,R>
extends Object


Constructor Summary
Either()
           
 
Method Summary
 L getLeft()
           
 R getRight()
           
 boolean isLeft()
           
 boolean isRight()
           
static
<L,R> Either<L,R>
Left(L value)
           
static
<L,R> Either<L,R>
Right(R value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Either

public Either()
Method Detail

getLeft

public L getLeft()

getRight

public R getRight()

isLeft

public boolean isLeft()

isRight

public boolean isRight()

Left

public static <L,R> Either<L,R> Left(L value)

Right

public static <L,R> Either<L,R> Right(R value)