public enum PromiseHelper extends Enum<PromiseHelper>
| Modifier and Type | Method and Description |
|---|---|
static Promise<Unit> |
exists(Promise<?>... promises) |
static <T> Promise<T> |
failure(Throwable t) |
static Promise<Unit> |
forall(Promise<?>... promises) |
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> Promise<T> success(T t)
Copyright © 2017. All rights reserved.