Additional top-level classes in compilation unit: BiSubscription, MultiSubscription.
| Modifier and Type | Field and Description |
|---|---|
| public static final Subscription |
| Modifier and Type | Method and Description |
|---|---|
| public default Subscription | and(Subscription other)
Returns a new aggregate subscription whose |
| public static <T> Subscription | Returns: An aggregate subscription that tracks elementary subscriptions. When the returned subscription is unsubscribed, all elementary subscriptions are unsubscribed as well, and no new elementary subscriptions will be created.observable set of elements that will be subscribed to elems, Function<? super T, ? extends Subscription> function to subscribe to an element of the set. f)Dynamically subscribes to all elements of the given observable set. |
| public static Subscription | multi(Subscription... subs)
Returns a new aggregate subscription whose |
| public static <T> Subscription | multi(Function<? super T, ? extends Subscription> f, T... elems)
Subscribes to all elements by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions. |
| public static <T> Subscription | multi(Function<? super T, ? extends Subscription> f, Collection<T> elems)
Subscribes to all elements of the given collection by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions. |
| public void |
| EMPTY | back to summary |
|---|---|
| public static final Subscription EMPTY | |
| and | back to summary |
|---|---|
| public default Subscription and(Subscription other) Returns a new aggregate subscription whose | |
| dynamic | back to summary |
|---|---|
| public static <T> Subscription dynamic(ObservableSet<T> elems, Function<? super T, ? extends Subscription> f) Dynamically subscribes to all elements of the given observable set. When an element is added to the set, it is automatically subscribed to. When an element is removed from the set, it is automatically unsubscribed from.
| |
| multi | back to summary |
|---|---|
| public static Subscription multi(Subscription... subs) Returns a new aggregate subscription whose | |
| multi | back to summary |
|---|---|
| public static <T> Subscription multi(Function<? super T, ? extends Subscription> f, T... elems) Subscribes to all elements by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions.
| |
| multi | back to summary |
|---|---|
| public static <T> Subscription multi(Function<? super T, ? extends Subscription> f, Collection<T> elems) Subscribes to all elements of the given collection by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions. | |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() | |