T - type of the arguments.public interface Source<T>
| 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. |
void subscribe(@NotNull
@NotNull Target<T> target)
Target into the source.target - the target to subscribe.void unsubscribe(@NotNull
@NotNull Target<T> target)
Target from the subscriptions of the source.target - the target to remove.void notifyTargets(@NotNull
T argument)
Target.update(Object) method all of the subscribes.argument - the argument to notify.Copyright © 2021. All rights reserved.