| Constructor and Description |
|---|
BasicSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyTargets(T argument)
notifies
Target.update(Object) method all of the subscribes. |
void |
subscribe(@NotNull Target<T> target)
subscribes the given
Target into the source. |
void |
unsubscribe(@NotNull Target<T> target)
remove the given
Target from the subscriptions of the source. |
public void subscribe(@NotNull
@NotNull Target<T> target)
SourceTarget into the source.public void unsubscribe(@NotNull
@NotNull Target<T> target)
SourceTarget from the subscriptions of the source.unsubscribe in interface Source<T>target - the target to remove.public void notifyTargets(@NotNull
T argument)
SourceTarget.update(Object) method all of the subscribes.notifyTargets in interface Source<T>argument - the argument to notify.Copyright © 2021. All rights reserved.