public abstract class Maybe<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Maybe<T> other) |
abstract T |
get(T def) |
abstract T |
getJust() |
abstract int |
hashCode() |
abstract boolean |
isJust() |
abstract boolean |
isNothing() |
static <T> Maybe<T> |
Just(T value) |
static <T> Maybe<T> |
Nothing() |
abstract java.lang.String |
toString() |
public abstract boolean isNothing()
public abstract boolean isJust()
public abstract T getJust()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
public static <T> Maybe<T> Just(T value)
public static <T> Maybe<T> Nothing()