Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Operator Matrix

David Karnok edited this pageJan 30, 2020 ·31 revisions
OperatorFlowableObservableMaybeSingleCompletable
allpresentpresentabsent(1)absent(1)absent(2)
ambpresentpresentpresentpresentpresent
ambArraypresentpresentpresentpresentpresent
ambWithpresentpresentpresentpresentpresent
andThenabsent(3)absent(3)absent(3)absent(3)present
anypresentpresentabsent(1)absent(1)absent(2)
blockingAwaitabsent(4)absent(4)absent(5)absent(5)present
blockingFirstpresentpresentabsent(6)absent(6)absent(7)
blockingForEachpresentpresentabsent(8)absent(8)absent(8)
blockingGetabsent(4)absent(4)presentpresentabsent(7)
blockingIterablepresentpresentabsent(6)absent(6)absent(7)
blockingLastpresentpresentabsent(6)absent(6)absent(7)
blockingLatestpresentpresentabsent(6)absent(6)absent(7)
blockingMostRecentpresentpresentabsent(6)absent(6)absent(7)
blockingNextpresentpresentabsent(6)absent(6)absent(7)
blockingSinglepresentpresentabsent(6)absent(6)absent(7)
blockingStreampresentpresentabsent(6)absent(6)absent(7)
blockingSubscribepresentpresentpresentpresentpresent
bufferpresentpresentabsent(9)absent(10)absent(11)
cachepresentpresentpresentpresentpresent
cacheWithInitialCapacitypresentpresentabsent(12)absent(12)absent(12)
castpresentpresentpresentpresentabsent(2)
collectpresentpresentabsent(13)absent(14)absent(15)
collectIntopresentpresentabsent(13)absent(14)absent(15)
combineLatestpresentpresentabsent(16)absent(16)absent(17)
combineLatestArraypresentpresentabsent(18)absent(18)absent(19)
combineLatestArrayDelayErrorpresentpresentabsent(18)absent(18)absent(20)
combineLatestDelayErrorpresentpresentabsent(16)absent(16)absent(21)
completeabsent(22)absent(22)absent(22)absent(23)present
composepresentpresentpresentpresentpresent
concatpresentpresentpresentpresentpresent
concatArraypresentpresentpresentpresentpresent
concatArrayDelayErrorpresentpresentpresentpresentpresent
concatArrayEagerpresentpresentpresentpresentabsent(24)
concatArrayEagerDelayErrorpresentpresentpresentpresentabsent(25)
concatDelayErrorpresentpresentpresentpresentpresent
concatEagerpresentpresentpresentpresentabsent(26)
concatEagerDelayErrorpresentpresentpresentpresentabsent(27)
concatMappresentpresentpresentpresentabsent(28)
concatMapCompletablepresentpresentpresentpresentabsent(28)
concatMapCompletableDelayErrorpresentpresentabsent(29)absent(29)absent(28)
concatMapDelayErrorpresentpresentabsent(30)absent(30)absent(28)
concatMapEagerpresentpresentabsent(31)absent(31)absent(28)
concatMapEagerDelayErrorpresentpresentabsent(31)absent(31)absent(28)
concatMapIterablepresentpresentabsent(32)absent(32)absent(28)
concatMapMaybepresentpresentabsent(33)presentabsent(28)
concatMapMaybeDelayErrorpresentpresentabsent(34)absent(34)absent(28)
concatMapSinglepresentpresentpresentabsent(35)absent(28)
concatMapSingleDelayErrorpresentpresentabsent(36)absent(36)absent(28)
concatMapStreampresentpresentabsent(37)absent(37)absent(28)
concatWithpresentpresentpresentpresentpresent
containspresentpresentpresentpresentabsent(2)
countpresentpresentpresentabsent(38)absent(39)
createpresentpresentpresentpresentpresent
debouncepresentpresentabsent(40)absent(40)absent(41)
defaultIfEmptypresentpresentpresentabsent(23)absent(42)
deferpresentpresentpresentpresentpresent
delaypresentpresentpresentpresentpresent
delaySubscriptionpresentpresentpresentpresentpresent
dematerializepresentpresentpresentpresentabsent(41)
distinctpresentpresentabsent(43)absent(43)absent(41)
distinctUntilChangedpresentpresentabsent(43)absent(43)absent(41)
doAfterNextpresentpresentabsent(44)absent(44)absent(2)
doAfterSuccessabsent(45)absent(45)presentpresentabsent(41)
doAfterTerminatepresentpresentpresentpresentpresent
doFinallypresentpresentpresentpresentpresent
doOnCancelpresentabsent(46)absent(46)absent(46)absent(46)
doOnCompletepresentpresentpresentabsent(47)present
doOnDisposeabsent(48)presentpresentpresentpresent
doOnEachpresentpresentabsent(49)absent(49)absent(41)
doOnErrorpresentpresentpresentpresentpresent
doOnEventabsent(50)absent(50)presentpresentpresent
doOnLifecyclepresentpresentpresentpresentpresent
doOnNextpresentpresentabsent(51)absent(51)absent(41)
doOnRequestpresentabsent(52)absent(52)absent(52)absent(52)
doOnSubscribepresentpresentpresentpresentpresent
doOnSuccessabsent(53)absent(53)presentpresentabsent(41)
doOnTerminatepresentpresentpresentpresentpresent
elementAtpresentpresentabsent(54)absent(55)absent(41)
elementAtOrErrorpresentpresentabsent(56)absent(55)absent(41)
emptypresentpresentpresentabsent(23)absent(57)
errorpresentpresentpresentpresentpresent
filterpresentpresentpresentpresentabsent(41)
firstpresentpresentabsent(58)absent(59)absent(42)
firstElementpresentpresentabsent(60)absent(61)absent(2)
firstOrErrorpresentpresentabsent(60)absent(61)absent(62)
firstOrErrorStagepresentpresentabsent(63)absent(63)absent(64)
firstStagepresentpresentabsent(63)absent(63)absent(63)
flatMappresentpresentpresentpresentabsent(28)
flatMapCompletablepresentpresentpresentpresentabsent(28)
flatMapIterablepresentpresentabsent(32)absent(32)absent(28)
flatMapMaybepresentpresentabsent(65)presentabsent(28)
flatMapObservableabsent(66)absent(67)presentpresentabsent(28)
flatMapPublisherabsent(67)absent(68)presentpresentabsent(28)
flatMapSinglepresentpresentpresentabsent(65)absent(28)
flatMapStreampresentpresentabsent(37)absent(37)absent(28)
flattenAsFlowableabsent(69)absent(69)presentpresentabsent(28)
flattenAsObservableabsent(69)absent(69)presentpresentabsent(28)
flattenStreamAsFlowableabsent(70)absent(70)presentpresentabsent(28)
flattenStreamAsObservableabsent(70)absent(70)presentpresentabsent(28)
forEachpresentpresentabsent(71)absent(71)absent(71)
forEachWhilepresentpresentabsent(71)absent(71)absent(71)
fromActionpresentpresentpresentabsent(23)present
fromArraypresentpresentabsent(72)absent(73)absent(74)
fromCallablepresentpresentpresentpresentpresent
fromCompletablepresentpresentpresentabsent(75)absent(76)
fromCompletionStagepresentpresentpresentpresentpresent
fromFuturepresentpresentpresentpresentpresent
fromIterablepresentpresentabsent(72)absent(73)absent(74)
fromMaybepresentpresentabsent(76)presentpresent
fromObservablepresentabsent(76)presentpresentpresent
fromOptionalpresentpresentpresentabsent(73)absent(74)
fromPublisherpresentpresentpresentpresentpresent
fromRunnablepresentpresentpresentabsent(23)present
fromSinglepresentpresentpresentabsent(76)present
fromStreampresentpresentabsent(72)absent(73)absent(74)
fromSupplierpresentpresentpresentpresentpresent
generatepresentpresentabsent(77)absent(77)absent(77)
groupBypresentpresentabsent(78)absent(78)absent(79)
groupJoinpresentpresentabsent(78)absent(78)absent(80)
hidepresentpresentpresentpresentpresent
ignoreElementabsent(81)absent(81)presentpresentabsent(2)
ignoreElementspresentpresentabsent(82)absent(82)absent(2)
intervalpresentpresentabsent(83)absent(83)absent(83)
intervalRangepresentpresentabsent(83)absent(83)absent(83)
isEmptypresentpresentpresentabsent(59)absent(2)
joinpresentpresentabsent(84)absent(84)absent(80)
justpresentpresentpresentpresentabsent(2)
lastpresentpresentabsent(58)absent(59)absent(42)
lastElementpresentpresentabsent(60)absent(61)absent(2)
lastOrErrorpresentpresentabsent(60)absent(61)absent(62)
lastOrErrorStagepresentpresentabsent(63)absent(63)absent(64)
lastStagepresentpresentabsent(63)absent(63)absent(63)
liftpresentpresentpresentpresentpresent
mappresentpresentpresentpresentabsent(28)
mapOptionalpresentpresentpresentpresentabsent(28)
materializepresentpresentpresentpresentpresent
mergepresentpresentpresentpresentpresent
mergeArraypresentpresentpresentpresentpresent
mergeArrayDelayErrorpresentpresentpresentpresentpresent
mergeDelayErrorpresentpresentpresentpresentpresent
mergeWithpresentpresentpresentpresentpresent
neverpresentpresentpresentpresentpresent
observeOnpresentpresentpresentpresentpresent
ofTypepresentpresentpresentpresentabsent(85)
onBackpressureBufferpresentabsent(52)absent(52)absent(52)absent(52)
onBackpressureDroppresentabsent(52)absent(52)absent(52)absent(52)
onBackpressureLatestpresentabsent(52)absent(52)absent(52)absent(52)
onErrorCompletepresentpresentpresentpresentpresent
onErrorResumeNextpresentpresentpresentpresentpresent
onErrorResumeWithpresentpresentpresentpresentpresent
onErrorReturnpresentpresentpresentpresentpresent
onErrorReturnItempresentpresentpresentpresentpresent
onTerminateDetachpresentpresentpresentpresentpresent
parallelpresentabsent(86)absent(86)absent(86)absent(86)
publishpresentpresentabsent(87)absent(88)absent(89)
rangepresentpresentabsent(90)absent(90)absent(74)
rangeLongpresentpresentabsent(90)absent(90)absent(74)
rebatchRequestspresentabsent(52)absent(52)absent(52)absent(52)
reducepresentpresentabsent(91)absent(91)absent(92)
reduceWithpresentpresentabsent(91)absent(91)absent(92)
repeatpresentpresentpresentpresentpresent
repeatUntilpresentpresentpresentpresentpresent
repeatWhenpresentpresentpresentpresentpresent
replaypresentpresentabsent(87)absent(88)absent(89)
retrypresentpresentpresentpresentpresent
retryUntilpresentpresentpresentpresentpresent
retryWhenpresentpresentpresentpresentpresent
safeSubscribepresentpresentpresentpresentpresent
samplepresentpresentabsent(60)absent(60)absent(41)
scanpresentpresentabsent(91)absent(91)absent(92)
scanWithpresentpresentabsent(91)absent(91)absent(92)
sequenceEqualpresentpresentpresentpresentpresent
serializepresentpresentabsent(93)absent(93)absent(93)
sharepresentpresentabsent(87)absent(88)absent(89)
singlepresentpresentabsent(58)absent(59)absent(42)
singleElementpresentpresentabsent(60)absent(61)absent(2)
singleOrErrorpresentpresentabsent(60)absent(61)absent(62)
singleOrErrorStagepresentpresentabsent(63)absent(63)absent(64)
singleStagepresentpresentabsent(63)absent(63)absent(63)
skippresentpresentabsent(60)absent(60)absent(60)
skipLastpresentpresentabsent(60)absent(60)absent(60)
skipUntilpresentpresentabsent(94)absent(94)absent(94)
skipWhilepresentpresentabsent(95)absent(95)absent(2)
sortedpresentpresentabsent(78)absent(78)absent(78)
startWithpresentpresentpresentpresentpresent
startWithArraypresentpresentabsent(96)absent(96)absent(96)
startWithItempresentpresentabsent(97)absent(97)absent(97)
startWithIterablepresentpresentabsent(98)absent(98)absent(98)
subscribepresentpresentpresentpresentpresent
subscribeOnpresentpresentpresentpresentpresent
subscribeWithpresentpresentpresentpresentpresent
switchIfEmptypresentpresentpresentabsent(23)absent(99)
switchMappresentpresentabsent(100)absent(100)absent(28)
switchMapCompletablepresentpresentabsent(100)absent(100)absent(28)
switchMapCompletableDelayErrorpresentpresentabsent(100)absent(100)absent(28)
switchMapDelayErrorpresentpresentabsent(100)absent(100)absent(28)
switchMapMaybepresentpresentabsent(100)absent(100)absent(28)
switchMapMaybeDelayErrorpresentpresentabsent(100)absent(100)absent(28)
switchMapSinglepresentpresentabsent(100)absent(100)absent(28)
switchMapSingleDelayErrorpresentpresentabsent(100)absent(100)absent(28)
switchOnNextpresentpresentpresentpresentpresent
switchOnNextDelayErrorpresentpresentpresentpresentpresent
takepresentpresentabsent(60)absent(60)absent(60)
takeLastpresentpresentabsent(60)absent(60)absent(60)
takeUntilpresentpresentpresentpresentpresent
takeWhilepresentpresentabsent(95)absent(95)absent(2)
testpresentpresentpresentpresentpresent
throttleFirstpresentpresentabsent(40)absent(40)absent(41)
throttleLastpresentpresentabsent(40)absent(40)absent(41)
throttleLatestpresentpresentabsent(40)absent(40)absent(41)
throttleWithTimeoutpresentpresentabsent(40)absent(40)absent(41)
timeIntervalpresentpresentpresentpresentabsent(41)
timeoutpresentpresentpresentpresentpresent
timerpresentpresentpresentpresentpresent
timestamppresentpresentpresentpresentabsent(41)
topresentpresentpresentpresentpresent
toCompletionStageabsent(101)absent(101)presentpresentpresent
toFlowableabsent(102)presentpresentpresentpresent
toFuturepresentpresentpresentpresentpresent
toListpresentpresentabsent(13)absent(14)absent(15)
toMappresentpresentabsent(13)absent(14)absent(15)
toMaybeabsent(103)absent(103)absent(102)presentpresent
toMultimappresentpresentabsent(13)absent(14)absent(15)
toObservablepresentabsent(102)presentpresentpresent
toSingleabsent(104)absent(104)presentabsent(102)present
toSingleDefaultabsent(105)absent(105)absent(106)absent(102)present
toSortedListpresentpresentabsent(13)absent(14)absent(15)
unsafeCreatepresentpresentpresentpresentpresent
unsubscribeOnpresentpresentpresentpresentpresent
usingpresentpresentpresentpresentpresent
windowpresentpresentabsent(107)absent(108)absent(109)
withLatestFrompresentpresentabsent(16)absent(16)absent(17)
wrapabsent(110)presentpresentpresentpresent
zippresentpresentpresentpresentabsent(111)
zipArraypresentpresentpresentpresentabsent(112)
zipWithpresentpresentpresentpresentabsent(113)
237 operators21621011810884

Notes

1 Usecontains().
2 Always empty.
3 UseconcatWith.
4 UseblockingFirst(),blockingSingle() orblockingLast().
5 UseblockingGet().
6 At most one element to get. UseblockingGet().
7 No elements to get. UseblockingAwait().
8 UseblockingSubscribe()
9 Usemap() andswitchIfEmpty() to transform into a list/collection.
10 Usemap() to transform into a list/collection.
11 Always empty. UseandThen() to bring in a list/collection.
12 At most one element to store. Usecache().
13 At most one element to collect. Usemap() andswitchIfEmpty() to transform into a list/collection.
14 One element to collect. Usemap() to transform into a list/collection.
15 Always empty. UseandThen() to bring in a collection.
16 At most one element per source. Usezip().
17 Always empty. Usemerge().
18 At most one element per source. UsezipArray().
19 Always empty. UsemergeArray().
20 Always empty. UsemergeArrayDelayError().
21 Always empty. UsemergeDelayError().
22 Useempty().
23 Never empty.
24 No items to keep ordered. UsemergeArray().
25 No items to keep ordered. UsemergeArrayDelayError().
26 No items to keep ordered. Usemerge().
27 No items to keep ordered. UsemergeDelayError().
28 Always empty thus no items to map.
29 Either the upstream fails (thus no inner) or the mapped-in source, but never both. UseconcatMapCompletable.
30 Either the upstream fails (thus no inner) or the mapped-in source, but never both. UseconcatMap.
31 At most one item to map. UseconcatMap().
32 At most one item. UseflattenAsFlowable orflattenAsObservable.
33 UseconcatMap.
34 Either the upstream fails (thus no inner) or the mapped-in source, but never both. UseconcatMapMaybe.
35 UseconcatMap().
36 Either the upstream fails (thus no inner) or the mapped-in source, but never both. UseconcatMapSingle.
37 At most one item. UseflattenStreamAsFlowable orflattenStreamAsObservable.
38 Never empty thus always 1.
39 Always empty thus always 0.
40 At most one item signaled so no subsequent items to work with.
41 Always empty thus no items to work with.
42 Always empty. UseandThen() to chose the follow-up sequence.
43 At most one item, always distinct.
44 Different terminology. UsedoAfterSuccess().
45 Different terminology. UsedoAfterNext().
46 Different terminology. UsedoOnDispose().
47 Always succeeds or fails, there is noonComplete signal.
48 Different terminology. UsedoOnCancel().
49 At most one item. UsedoOnEvent().
50 UsedoOnEach().
51 Different terminology. UsedoOnSuccess().
52 Backpressure related and not supported outsideFlowable.
53 Different terminology. UsedoOnNext().
54 At most one item with index 0. UsedefaultIfEmpty.
55 Always one item with index 0.
56 At most one item with index 0. UsetoSingle.
57 Usecomplete().
58 At most one item. UsedefaultIfEmpty.
59 Always one item.
60 At most one item, would be no-op.
61 Always one item, would be no-op.
62 Always empty. UseandThen() anderror().
63 At most one item. UsetoCompletionStage().
64 Always empty. UseandThen(),error() andtoCompletionStage().
65 UseflatMap().
66 Not supported. UseflatMap andtoFlowable().
67 UseflatMap.
68 Not supported. UseflatMap andtoObservable().
69 UseflatMapIterable().
70 UseflatMapStream().
71 Usesubscribe().
72 At most one item. Usejust() orempty().
73 Always one item. Usejust().
74 Always empty. Usecomplete().
75 Always error.
76 Usewrap().
77 UsefromSupplier().
78 At most one item.
79 Always empty thus no items to group.
80 Always empty thus no items to join.
81 UseignoreElements().
82 UseignoreElement().
83 At most one item. Usetimer().
84 At most one item. Usezip()
85 Always empty thus no items to filter.
86 Needs backpressure thus not supported outsideFlowable.
87 Connectable sources not supported outsideFlowable andObservable. Use aMaybeSubject.
88 Connectable sources not supported outsideFlowable andObservable. Use aSingleSubject.
89 Connectable sources not supported outsideFlowable andObservable. Use aConnectableSubject.
90 At most one item. Usejust().
91 At most one item. Usemap().
92 Always empty thus no items to reduce.
93 At most one signal type.
94 At most one item. UsetakeUntil().
95 At most one item. Usefilter().
96 UsestartWith() andfromArray() ofFlowable orObservable.
97 UsestartWith() andjust() of another reactive type.
98 UsestartWith() andfromIterable() ofFlowable orObservable.
99 Always empty. UsedefaultIfEmpty().
100 At most one item. UseflatMap().
101 UsefirstStage,lastStage orsingleStage.
102 Would be no-op.
103 UsefirstElement,lastElement orsingleElement.
104 UsefirstOrError,lastOrError orsingleOrError.
105 Usefirst,last orsingle.
106 UsedefaultIfEmpty().
107 Usemap() andswitchIfEmpty() to transform into a nested source.
108 Usemap() to transform into a nested source.
109 Always empty. UseandThen() to bring in a nested source.
110 UsefromPublisher().
111 Usemerge().
112 UsemergeArray().
113 UsemergeWith().

Under development

Currently, all intended operators are implemented.

Copyright (c) 2016-present, RxJava Contributors.
Twitter @RxJava |Gitter @RxJava

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp