public interface ICommand<I,R>
I
and returns R.| Modifier and Type | Method and Description |
|---|---|
rx.Observable<R> |
apply()
Invokes
apply(Object) with null. |
rx.Observable<R> |
apply(I input)
Applies the receiver returning an
Observable which when subscribed,
will execute the command with input and forwards the results. |
rx.Observable<java.lang.Throwable> |
getErrors()
An Observable of all errors that occur in the receiver.
|
rx.Observable<rx.Notification<R>> |
getNotifications()
An Observable of all
Notification that occur in the receiver. |
rx.Observable<R> |
getValues()
An Observable of Values generated from applications of the receiver.
|
IProperty<java.lang.Boolean> |
isEnabled()
Whether or not the receiver is enabled.
|
IProperty<java.lang.Boolean> |
isExecuting()
Whether or not the receiver is executing.
|
rx.Observable<R> apply()
apply(Object) with null.rx.Observable<R> apply(I input)
Observable which when subscribed,
will execute the command with input and forwards the results.
If Command is executing or not enabled,
an Observable with error CommandNotEnabledException is returned.rx.Observable<rx.Notification<R>> getNotifications()
Notification that occur in the receiver.rx.Observable<R> getValues()
IProperty<java.lang.Boolean> isEnabled()
IProperty<java.lang.Boolean> isExecuting()
rx.Observable<java.lang.Throwable> getErrors()