Constructor and Description |
---|
Maybe() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
filterJust(List<Maybe<? extends T>> maybes) |
static <T> T[] |
filterJust(Maybe<? extends T>[] maybes,
T... array) |
abstract T |
fromMaybe(T t) |
abstract boolean |
isJust() |
abstract boolean |
isNothing() |
static <T> Just<T> |
just(T t) |
static <T> Nothing<T> |
nothing() |
public Maybe()
public abstract boolean isNothing()
public abstract boolean isJust()
public static <T> List<T> filterJust(List<Maybe<? extends T>> maybes)
@SafeVarargs public static <T> T[] filterJust(Maybe<? extends T>[] maybes, T... array)
Copyright © 2013. All Rights Reserved.