public abstract class Maybe<V> extends Object
An abstract implementation for a construct which might be of a certain value or not.
The static methods of this class provide the concrete implementations. Such as in:
| Constructor and Description |
|---|
Maybe() |
| Modifier and Type | Method and Description |
|---|---|
static <V> List<V> |
allValues(List<Maybe<V>> list) |
static <V> Maybe<V> |
any(Maybe... maybes) |
abstract boolean |
is() |
static <V> Maybe<V> |
is(V outervalue) |
static <V> Maybe<V> |
isNot() |
static <V> Maybe<V> |
isNot(Class<V> clazz) |
abstract V |
value() |
Copyright © 2017. All rights reserved.