Uses of Interface
rx.functions.Function
Packages that use Function
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.
Classes extending the Observable base reactive class and implementing
the Observer interface at the same time (aka hot Observables).
-
Uses of Function in rx
Modifier and TypeInterfaceDescriptionstatic interfaceCallback used for building deferred computations that takes a CompletableSubscriber.static interfaceConvenience interface and callback used by the lift operator that given a child CompletableSubscriber, return a parent CompletableSubscriber that does any kind of lifecycle-related transformations.static interfaceConvenience interface and callback used by the compose operator to turn a Completable into another Completable fluently.static interfaceInvoked when Observable.subscribe is called.static interfaceObservable.Operator<R,T> Operator function for lifting into an Observable.static interfaceFunction that receives the current Observable and should return another Observable, possibly with given element type, in exchange that will be subscribed to by the downstream operators and subscribers.static interfaceInvoked when Single.execute is called.static interfaceSingle.Transformer<T,R> Transformer function used bySingle.compose(rx.Single.Transformer<? super T, ? extends R>).Modifier and TypeClassDescription(package private) static final classTransforms a OnSubscribe.call() into an Observable.subscribe() call. -
Uses of Function in rx.functions
Subinterfaces of Function in rx.functionsModifier and TypeInterfaceDescriptioninterfaceAll Action interfaces extend from this.interfaceA zero-argument action.interfaceAction1<T>A one-argument action.interfaceAction2<T1,T2> A two-argument action.interfaceAction3<T1,T2, T3> A three-argument action.interfaceAction4<T1,T2, T3, T4> A four-argument action.interfaceAction5<T1,T2, T3, T4, T5> A five-argument action.interfaceAction6<T1,T2, T3, T4, T5, T6> A six-argument action.interfaceAction7<T1,T2, T3, T4, T5, T6, T7> A seven-argument action.interfaceAction8<T1,T2, T3, T4, T5, T6, T7, T8> An eight-argument action.interfaceAction9<T1,T2, T3, T4, T5, T6, T7, T8, T9> A nine-argument action.interfaceA vector-argument action.interfaceFunc0<R>Represents a function with zero arguments.interfaceFunc1<T,R> Represents a function with one argument.interfaceFunc2<T1,T2, R> Represents a function with two arguments.interfaceFunc3<T1,T2, T3, R> Represents a function with three arguments.interfaceFunc4<T1,T2, T3, T4, R> Represents a function with four arguments.interfaceFunc5<T1,T2, T3, T4, T5, R> Represents a function with five arguments.interfaceFunc6<T1,T2, T3, T4, T5, T6, R> Represents a function with six arguments.interfaceFunc7<T1,T2, T3, T4, T5, T6, T7, R> Represents a function with seven arguments.interfaceFunc8<T1,T2, T3, T4, T5, T6, T7, T8, R> Represents a function with eight arguments.interfaceFunc9<T1,T2, T3, T4, T5, T6, T7, T8, T9, R> Represents a function with nine arguments.interfaceFuncN<R>Represents a vector-argument function.Classes in rx.functions that implement FunctionModifier and TypeClassDescription(package private) static final class(package private) static final classActions.EmptyAction<T0,T1, T2, T3, T4, T5, T6, T7, T8> -
Uses of Function in rx.internal.operators
Subinterfaces of Function in rx.internal.operatorsModifier and TypeInterfaceDescription(package private) static interfaceSet up the timeout action on the first value.(package private) static interfaceSet up the timeout action based on every valueClasses in rx.internal.operators that implement FunctionModifier and TypeClassDescription(package private) static final class(package private) static final classManages the subscription of child subscribers by setting up a replay producer and performs auto-connection of the very first subscription.final classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classenumHolds a singleton instance of an empty Observable which is stateless and completes the child subscriber immediately.enumHolds a singleton instance of a never Observable which is stateless doesn't call any of the Subscriber's methods.final classGiven multipleObservables, propagates the one that first emits an item.final classWraps a ConnectableObservable and calls its connect() method once the specified number of Subscribers have subscribed.final classOnSubscribeCollect<T,R> final classfinal classOnSubscribeConcatMap<T,R> Maps a source sequence into Observables and concatenates them in order, subscribing to one at a time.final classDo not create the Observable until an Observer subscribes; create a fresh Observable on each subscription.final classDelays the subscription to the source by the given amount, running on the given scheduler.final classDelays the subscription to the main source until the other observable fires an event or completes.final classDelays the subscription until the Observable emits an event.final classNulls out references to upstream data structures when the source terminates or the child unsubscribes.final classFilters an Observable by discarding any items it emits that do not meet some test.final classFlattens a sequence if Iterable sources, generated via a function, into a single sequence.(package private) static final classA custom flattener that works from a scalar value and computes the iterable during subscription time.final classfinal classfinal classDo not invoke the function until an Observer subscribes; Invokes function on each subscription.final classConverts anIterablesequence into anObservable.final classOnSubscribeGroupJoin<T1,T2, D1, D2, R> Correlates two sequences when they overlap and groups the results.(package private) static final classThe reference-counted window observable.final classOnSubscribeJoin<TLeft,TRight, TLeftDuration, TRightDuration, R> Correlates the elements of two sequences based on overlapping durations.final classOnSubscribeLift<T,R> Transforms the downstream Subscriber into a Subscriber via an operator callback and calls the parent OnSubscribe.call() method with it.final classOnSubscribeMap<T,R> Applies a function of your choosing to every item emitted by anObservable, and emits the results of this transformation as a newObservable.final classCaptures the current stack when it is instantiated, makes it available through a field and attaches it to all passing exception.final classCaptures the current stack when it is instantiated, makes it available through a field and attaches it to all passing exception.final classCaptures the current stack when it is instantiated, makes it available through a field and attaches it to all passing exception.final classMulticasts notifications coming through its input Subscriber view to its client Subscribers via lockstep backpressure mode.final classEmit ints from start to end inclusive.final classstatic final classstatic final classfinal classfinal classfinal classReturns an observable sequence that stays connected to the source as long as there is at least one subscription to the observable sequence.classAllows conversion of an Observable to a Single ensuring that exactly one item is emitted - no more and no less.final classfinal classfinal classTimer that emits a single 0L and completes after the specified time.final classEmit 0L after the initial period and ever increasing number after each period.(package private) static classfinal classOnSubscribeUsing<T,Resource> Constructs an observable sequence that depends on a resource object.(package private) static final classOnSubscribeUsing.DisposeAction<Resource>final classOperatorAll<T>Returns an Observable that emits a Boolean that indicates whether all items emitted by an Observable satisfy a condition.final classOperatorAny<T>Returns anObservablethat emitstrueif any element of an observable sequence satisfies a condition, otherwisefalse.final classHides the identity of another observable.final classOperatorBufferWithSingleObservable<T,TClosing> This operation takes values from the specifiedObservablesource and stores them in a buffer until theObservableconstructed using theFunc0argument, produces a value.final classThis operation takes values from the specifiedObservablesource and stores them in all active chunks until the buffer contains a specified number of elements.final classOperatorBufferWithStartEndObservable<T,TOpening, TClosing> This operation takes values from the specifiedObservablesource and stores them in the currently active chunks.final classThis operation takes values from the specifiedObservablesource and stores them in a buffer.classOperatorCast<T,R> Converts the elements of an observable sequence to the specified type.final classDelay the emission via another observable if no new source appears in the meantime.final classThis operation filters out events which are published too quickly in succession.final classDelays the emission of onNext events by a given amount of time.final classDelay the subscription and emission of the source items by a per-item observable that fires its first element.final classReverses the effect ofOperatorMaterializeby transforming the Notification objects emitted by a source Observable into the items or notifications they represent.final classOperatorDistinct<T,U> Returns an Observable that emits all distinct items emitted by the source.final classReturns an Observable that emits all sequentially distinct items emitted by the source.final classRegisters an action to be called after an Observable invokesonCompleteoronError.classConverts the elements of an observable sequence to the specified type.classThis operator modifies anObservableso a given action is invoked when theProducerreceives a request.classThis operator modifies anObservableso a given action is invoked when theObservableis subscribed.classThis operator modifies anObservableso a given action is invoked when theObservableis unsubscribed.final classfinal classReturns the element at a specified index in a sequence.final classOperatorGroupBy<T,K, V> Groups the items emitted by an Observable according to a specified criterion, and emits these grouped items as Observables, one Observable per group.(package private) static class(package private) static final classclassfinal classApplies a function of your choosing to every item emitted by anObservable, and emits the results of this transformation as a newObservable.final classOperatorMapPair<T,U, R> AnObservable.Operatorthat pairs up items emitted by a sourceObservablewith the sequence of items emitted by theObservablethat is derived from each item by means of a selector, and emits the results of this pairing.(package private) static final classfinal classTurns all of the notifications from an Observable intoonNextemissions, and marks them with their original notification types withinNotificationobjects.final classFlattens a list ofObservables into oneObservable, without any transformation.final classDelivers events on the specifiedSchedulerasynchronously via an unbounded buffer.(package private) static final classObserve through individual queue per observer.classclassfinal classAn operator which drops all but the last received value in case the downstream doesn't request more.final classInstruct an Observable to pass control to another Observable (the return value of a function) rather than invokingonErrorif it encounters an error.final classfinal classSample with the help of another observable.final classReturns an Observable that emits the results of sampling the items emitted by the source Observable at a specified time interval.(package private) static final classThe source subscriber and sampler.final classOperatorScan<R,T> Returns an Observable that applies a function to the first item emitted by a source Observable, then feeds the result of that function along with the second item emitted by an Observable into the same function, and so on until all items have been emitted by the source Observable, emitting the result of each of these iterations.final classfinal classIf the Observable completes after emitting a single item that matches a predicate, return an Observable containing that item.final classOperatorSkip<T>Returns an Observable that skips the firstnumitems emitted by the source Observable.classBypasses a specified number of elements at the end of an observable sequence.classSkip delivering values in the time window before the values.final classSkips elements until a specified time elapses.final classOperatorSkipUntil<T,U> Skip elements from the source Observable until the secondary observable fires an element.final classSkips any emitted source items as long as the specified condition holds true.final classSubscribes Observers on the specifiedScheduler.final classTransforms an Observable that emits Observables into a single Observable that emits the items emitted by the most recently published of those Observables.final classIf the Observable completes without emitting any items, subscribe to an alternate Observable.final classOperatorTake<T>AnObservablethat emits the firstnumitems emitted by the sourceObservable.final classReturns an Observable that emits the at most the lastcountitems emitted by the source Observable.(package private) static final classfinal classReturns an Observable that emits the lastcountitems emitted by the source Observable.(package private) static final classfinal classTakes values from the source until the specific time elapses.(package private) static final classSubscribed to source and scheduled on a worker.final classOperatorTakeUntil<T,E> Returns an Observable that emits the items from the source Observable until another Observable emits an item.final classReturns an Observable that emits items emitted by the source Observable until the provided predicate returns falsefinal classO Returns an Observable that emits items emitted by the source Observable as long as a specified condition is true.final classThrottle by windowing a stream and returning the first value in each window.final classRecords the time interval between consecutive elements in an observable sequence.final classApplies a timeout policy for each element in the observable sequence, using the specified scheduler to run timeout timers.(package private) classclassOperatorTimeoutWithSelector<T,U, V> Returns an Observable that mirrors the source Observable.final classWraps each item emitted by a sourceObservablein aTimestampedobject.final classOperatorToMap<T,K, V> Maps the elements of the source observable into a java.util.Map instance and emits that once the source observable completes.static final classThe default map factory.final classOperatorToMultimap<T,K, V> Maps the elements of the source observable into a multimap (Map<K, Collection<V>>) where each key entry has a collection of the source's values.static final classThe default collection factory for a key in the multimap returning an ArrayList independent of the key.static final classThe default multimap factory returning a HashMap.final classReturns anObservablethat emits a single item, a list composed of all the items emitted by the sourceObservable.final classReturn anObservablethat emits the items emitted by the sourceObservable, in a sorted order (each item emitted by theObservablemust implementComparablewith respect to all other items in the sequence, or you must pass in a sort function).classUnsubscribes on the specified Scheduler.final classCreates non-overlapping windows of items where each window is terminated by an event from a secondary observable and a new window is started immediately.final classCreates non-overlapping windows of items where each window is terminated by an event from a secondary observable and a new window is started immediately.final classCreates windows of values into the source sequence with skip frequency and size bounds.(package private) static final class(package private) static final class(package private) static final classfinal classCreates potentially overlapping windows of the source items where each window is started by a value emitted by an observable and closed when an associated Observable emits a value or completes.final classCreates windows of values into the source sequence with timed window creation, length and size bounds.final classOperatorWithLatestFrom<T,U, R> Combines values from two sources only when the main source emits.final classfinal classOperatorZip<R>Returns an Observable that emits the results of a function applied to sets of items emitted, in sequence, by two or more other Observables.final classOperatorZipIterable<T1,T2, R> final classExecute an action after onSuccess or onError has been delivered.final classDelays the subscription to the Single until the Observable fires an event or completes.final classSingleOnSubscribeMap<T,R> Applies a function of your choosing to every item emitted by anSingle, and emits the results of this transformation as a newSingle.final classSingleOnSubscribeUsing<T,Resource> Generates a resource, derives a Single from it and disposes that resource once the Single terminates.final class -
Uses of Function in rx.internal.schedulers
Classes in rx.internal.schedulers that implement Function -
Uses of Function in rx.internal.util
Classes in rx.internal.util that implement FunctionModifier and TypeClassDescription(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final classThe OnSubscribe callback for the Observable constructor.(package private) static final classThe OnSubscribe implementation that creates the ScalarAsyncProducer for each incoming subscriber.(package private) static final classRepresents a producer which schedules the emission of a scalar value on the first positive request via the given scheduler callback.(package private) static final classOptimized observeOn for scalar value observed on the EventLoopsScheduler.(package private) static final classEmits a scalar value on a general scheduler.(package private) static final classAction that emits a single value when called.(package private) static enum(package private) static enum -
Uses of Function in rx.observables
Classes in rx.observables that implement FunctionModifier and TypeClassDescriptionclassAsyncOnSubscribe<S,T> A utility class to createOnSubscribe<T>functions that respond correctly to back pressure requests from subscribers.(package private) static final classAn implementation of AsyncOnSubscribe that delegatesAsyncOnSubscribe.next(Object, long, Observer),AsyncOnSubscribe.generateState(), andAsyncOnSubscribe.onUnsubscribe(Object)to provided functions/closures.(package private) static final classclassSyncOnSubscribe<S,T> A utility class to createOnSubscribe<T>functions that respond correctly to back pressure requests from subscribers.(package private) static final classAn implementation of SyncOnSubscribe that delegates,invalid reference
SyncOnSubscribe#next(Object, Subscriber)SyncOnSubscribe.generateState(), andSyncOnSubscribe.onUnsubscribe(Object)to provided functions/closures. -
Uses of Function in rx.subjects
Classes in rx.subjects that implement FunctionModifier and TypeClassDescription(package private) static final classHolds onto the array of Subscriber-wrapping ReplayProducers and the buffer that holds values to be replayed; it manages subscription and signal dispatching.(package private) final classRepresents the typical state and OnSubscribe logic for a Subject implementation.(package private) static final classThe single-consumption replaying state.