public interface Stateful<S extends Enum>
Modifier and Type | Method and Description |
---|---|
boolean |
hasSubscribers()
Returns true if there are subscribers observing the state stream.
|
boolean |
isState(S state)
Check if the given state is the same as the current one.
|
S |
state()
Returns the current state.
|
rx.Observable<S> |
states()
Returns a infinite observable which gets updated when the state of the component changes.
|
rx.Observable<S> states()
Observable
updated with state transitions.S state()
boolean isState(S state)
state
- the stats to check against.boolean hasSubscribers()
Copyright © 2019 Couchbase, Inc.. All rights reserved.