public abstract class Exceptional<T>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(java.lang.Object object) |
abstract java.lang.Throwable |
failure() |
static <T> Exceptional<T> |
failure(java.lang.Throwable reference) |
abstract T |
get() |
abstract int |
hashCode() |
abstract boolean |
isFailure() |
abstract boolean |
isSuccess() |
static <T> Exceptional<T> |
of(T reference) |
abstract Exceptional<T> |
or(Exceptional<T> other) |
abstract T |
or(T other) |
abstract T |
orNull() |
abstract com.google.common.base.Optional<T> |
toOptional() |
abstract java.lang.String |
toString() |
public static final <T> Exceptional<T> of(T reference)
public static final <T> Exceptional<T> failure(java.lang.Throwable reference)
public abstract Exceptional<T> or(Exceptional<T> other)
@Nullable public abstract T orNull()
public abstract boolean equals(@Nullable java.lang.Object object)
equals
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract com.google.common.base.Optional<T> toOptional()
public abstract T get()
public abstract java.lang.Throwable failure()
public abstract boolean isSuccess()
public abstract boolean isFailure()