| Modifier and Type | Field and Description |
|---|---|
| private Subscription | |
| private ListHelper | |
| private final NotificationAccumulator |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| protected final void | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| protected final void | forEachObserver(Consumer<O>
action to execute for each observer. action)Executes action for each observer, regardless of recursion state. |
| protected final int | |
| public int | |
| public final boolean | |
| protected void | |
| public final void | |
| protected final void | |
| public final Subscription | |
| protected abstract Subscription | Returns: subscription used to stop observing inputs. The subscription is unsubscribed (i.e. input observation stops) when the number of observers goes down to 0.Starts observing this observable's input(s), if any. |
| public final void | |
| public String |
| inputSubscription | back to summary |
|---|---|
| private Subscription inputSubscription | |
| observers | back to summary |
|---|---|
| private ListHelper<O> observers | |
| pendingNotifications | back to summary |
|---|---|
| private final NotificationAccumulator<O, T, ?> pendingNotifications | |
| ObservableBase | back to summary |
|---|---|
| protected ObservableBase(NotificationAccumulator<O, T, ?> pendingNotificationsImpl) | |
| ObservableBase | back to summary |
|---|---|
| protected ObservableBase() | |
| addObserver | back to summary |
|---|---|
| public final void addObserver(O observer) Implements org.
| |
| enqueueNotifications | back to summary |
|---|---|
| protected final void enqueueNotifications(T event) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| forEachObserver | back to summary |
|---|---|
| protected final void forEachObserver(Consumer<O> action) Executes action for each observer, regardless of recursion state.
If
| |
| getObserverCount | back to summary |
|---|---|
| protected final int getObserverCount() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isObservingInputs | back to summary |
|---|---|
| public final boolean isObservingInputs() | |
| newObserver | back to summary |
|---|---|
| protected void newObserver(O observer) 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
| |
| notifyObservers | back to summary |
|---|---|
| public final void notifyObservers(T event) Implements org.
| |
| notifyObservers | back to summary |
|---|---|
| protected final void notifyObservers() | |
| observe | back to summary |
|---|---|
| public final Subscription observe(O observer) Overrides default org.
| |
| observeInputs | back to summary |
|---|---|
| protected abstract Subscription observeInputs() 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
| |
| removeObserver | back to summary |
|---|---|
| public final void removeObserver(O observer) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |