Uses of Interface
rx.functions.Action2
Packages that use Action2
Package
Description
Base reactive classes: Observable, Single and Completable; base reactive consumers;
other common base interfaces.
Functional interfaces of functions and actions of arity 0 to 9 and related
utility classes.
Operators that allow composing Observables to transform and
manipulate data in an asynchronous, functional and thread-safe manner.
Classes extending the Observable base reactive class, synchronous and
asynchronous event generators.
-
Uses of Action2 in rx
Modifier and TypeMethodDescriptionfinal <R> Observable
<R> Collects items emitted by the source Observable into a single mutable data structure and returns an Observable that emits this structure. -
Uses of Action2 in rx.functions
Classes in rx.functions that implement Action2Modifier and TypeClassDescription(package private) static final class
Actions.EmptyAction<T0,
T1, T2, T3, T4, T5, T6, T7, T8> Methods in rx.functions with parameters of type Action2Modifier and TypeMethodDescriptionFunctions.fromAction
(Action2<? super T0, ? super T1> f) Converts anAction2
to a function that calls the action and returnsnull
.static <T1,
T2, R>
Func2<T1, T2, R> Converts anAction2
to a function that calls the action and returns a specified value. -
Uses of Action2 in rx.internal.operators
Fields in rx.internal.operators declared as Action2Modifier and TypeFieldDescriptionOnSubscribeCollect.collector
OnSubscribeCollect.CollectSubscriber.collector
Constructors in rx.internal.operators with parameters of type Action2ModifierConstructorDescriptionCollectSubscriber
(Subscriber<? super R> actual, R initialValue, Action2<R, ? super T> collector) OnSubscribeCollect
(Observable<T> source, Func0<R> collectionFactory, Action2<R, ? super T> collector) -
Uses of Action2 in rx.internal.util
Fields in rx.internal.util declared as Action2Methods in rx.internal.util with parameters of type Action2Modifier and TypeMethodDescriptionstatic <T,
R> Func2 <R, T, R> InternalObservableUtils.createCollectorCaller
(Action2<R, ? super T> collector) Returns a Func2 which calls a collector with its parameters and returns the first (R) parameter.Constructors in rx.internal.util with parameters of type Action2 -
Uses of Action2 in rx.observables
Methods in rx.observables with parameters of type Action2Modifier and TypeMethodDescriptionstatic <S,
T> SyncOnSubscribe <S, T> SyncOnSubscribe.createSingleState
(Func0<? extends S> generator, Action2<? super S, ? super Observer<? super T>> next) Generates a synchronousSyncOnSubscribe
that calls the providednext
function to generate data to downstream subscribers.static <S,
T> SyncOnSubscribe <S, T> SyncOnSubscribe.createSingleState
(Func0<? extends S> generator, Action2<? super S, ? super Observer<? super T>> next, Action1<? super S> onUnsubscribe) Generates a synchronousSyncOnSubscribe
that calls the providednext
function to generate data to downstream subscribers.static <T> AsyncOnSubscribe
<Void, T> AsyncOnSubscribe.createStateless
(Action2<Long, ? super Observer<Observable<? extends T>>> next) Generates a synchronousAsyncOnSubscribe
that calls the providednext
function to generate data to downstream subscribers.static <T> AsyncOnSubscribe
<Void, T> AsyncOnSubscribe.createStateless
(Action2<Long, ? super Observer<Observable<? extends T>>> next, Action0 onUnsubscribe) Generates a synchronousAsyncOnSubscribe
that calls the providednext
function to generate data to downstream subscribers.