Package com.dropbox.core.util
Class Maybe<T>
- java.lang.Object
-
- com.dropbox.core.util.Maybe<T>
-
public abstract class Maybe<T> extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
isNothing
public abstract boolean isNothing()
-
isJust
public abstract boolean isJust()
-
getJust
public abstract T getJust()
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
Just
public static <T> Maybe<T> Just(T value)
-
Nothing
public static <T> Maybe<T> Nothing()
-
-