Enum Class的使用
cn.dinodev.spring.commons.promise.Promise.State
使用Promise.State的程序包
-
cn.dinodev.spring.commons.promise中Promise.State的使用
修饰符和类型方法说明AbstractPromise.state()Promise.state()状态static Promise.StateReturns the enum constant of this class with the specified name.static Promise.State[]Promise.State.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明voidAlwaysCallback.onAlways(Promise.State state, D resolved, Throwable rejected) Invoked when thePromiseresolves or rejects a value.protected voidAbstractPromise.triggerAlways(AlwaysCallback<? super D> callback, Promise.State state, D resolve, Throwable reject) protected voidAbstractPromise.triggerAlways(Promise.State state, D resolve, Throwable reject)