public enum MaybeHelper extends Enum<MaybeHelper>
| Modifier and Type | Method and Description |
|---|---|
static <T> Monad<Maybe,T,Maybe<T>> |
monad(Maybe<T> maybe) |
static <T> Try<T> |
toTry(Maybe<T> maybe) |
static MaybeHelper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaybeHelper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static MaybeHelper[] values()
for (MaybeHelper c : MaybeHelper.values()) System.out.println(c);
public static MaybeHelper valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.