| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private final T | |
| private final EventStream | |
| private T |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | newObserver(Consumer<? super T> observer)
Overrides org. Called for each new observer. |
| protected final Subscription | observeInputs()
Implements abstract org. Starts observing this observable's input(s), if any. |
| emitted | back to summary |
|---|---|
| private boolean emitted | |
| firstObserver | back to summary |
|---|---|
| private boolean firstObserver | |
| initial | back to summary |
|---|---|
| private final T initial | |
| input | back to summary |
|---|---|
| private final EventStream<T> input | |
| latestEvent | back to summary |
|---|---|
| private T latestEvent | |
| DefaultEventStream | back to summary |
|---|---|
| public DefaultEventStream(EventStream<T> input, T initial) | |
| newObserver | back to summary |
|---|---|
| protected void newObserver(Consumer<? super T> observer) Overrides org. Doc from org. Called for each new observer. Overriding this method is a convenient way for subclasses to handle this event, for example to publish some initial events. This method is called after the
| |
| observeInputs | back to summary |
|---|---|
| protected final Subscription observeInputs() Implements abstract org. Doc from org. Starts observing this observable's input(s), if any.
This method is called when the number of observers goes from 0 to 1.
This method is called before
| |