public enum PromiseHelper extends Enum<PromiseHelper>
| Modifier and Type | Method and Description |
|---|---|
static <T> Applicative<Promise,T,Promise<T>> |
applicative(Promise<T> promise) |
static Promise<Unit> |
exists(Promise... promises) |
static <T> Promise<T> |
failure(Throwable t) |
static Promise<Unit> |
forall(Promise... promises) |
static <T> Functor<Promise,T,Promise<T>> |
functor(Promise<T> promise) |
static Promise<Unit> |
join(Promise... promises) |
static <T> Monad<Promise,T,Promise<T>> |
monad(Promise<T> promise) |
static <T> Promise<T> |
success(T t) |
static PromiseHelper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromiseHelper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static PromiseHelper[] values()
for (PromiseHelper c : PromiseHelper.values()) System.out.println(c);
public static PromiseHelper 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 nullpublic static <T> Applicative<Promise,T,Promise<T>> applicative(Promise<T> promise)
public static <T> Promise<T> success(T t)
Copyright © 2020. All rights reserved.