public class Either<T> extends java.lang.Object
static <T> Either<T>
fail(java.lang.String error)
fail(java.lang.Throwable error)
T
get()
boolean
isSuccess()
success(T value)
java.lang.Throwable
whyNot()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean isSuccess()
public T get()
public java.lang.Throwable whyNot()
public static <T> Either<T> success(T value)
public static <T> Either<T> fail(java.lang.Throwable error)
public static <T> Either<T> fail(java.lang.String error)