@@ -87,7 +87,9 @@ class CompletenessTest extends JUnitSuite {
87
87
" firstOrDefault(T, Func1[_ >: T, Boolean])" -> " [use `.filter(condition).firstOrElse(default)`]" ,
88
88
" groupBy(Func1[_ >: T, _ <: K], Func1[_ >: T, _ <: R])" -> " [use `groupBy` and `map`]" ,
89
89
" groupByUntil(Func1[_ >: T, _ <: TKey], Func1[_ >: GroupedObservable[TKey, T], _ <: Observable[_ <: TDuration]])" -> " groupByUntil(T => K, (K, Observable[T]) => Observable[Any])" ,
90
+ " ignoreElements()" -> " [use `filter(_ => false)`]" ,
90
91
" lift(Operator[_ <: R, _ >: T])" -> " lift(Subscriber[R] => Subscriber[T])" ,
92
+ " limit(Int)" -> " take(Int)" ,
91
93
" mapWithIndex(Func2[_ >: T, Integer, _ <: R])" -> " [combine `zipWithIndex` with `map` or with a for comprehension]" ,
92
94
" multicast(Subject[_ >: T, _ <: R])" -> " multicast(Subject[R])" ,
93
95
" multicast(Func0[_ <: Subject[_ >: T, _ <: TIntermediate]], Func1[_ >: Observable[TIntermediate], _ <: Observable[TResult]])" -> " multicast(() => Subject[R], Observable[R] => Observable[U])" ,
@@ -118,6 +120,7 @@ class CompletenessTest extends JUnitSuite {
118
120
" skipWhile(Func1[_ >: T, Boolean])" -> " dropWhile(T => Boolean)" ,
119
121
" skipWhileWithIndex(Func2[_ >: T, Integer, Boolean])" -> unnecessary,
120
122
" skipUntil(Observable[U])" -> " dropUntil(Observable[E])" ,
123
+ " single(Func1[_ >: T, Boolean])" -> " [use `filter(predicate).single`]" ,
121
124
" startWith(T)" -> " [use `item +: o`]" ,
122
125
" startWith(Array[T])" -> " [use `Observable.items(items) ++ o`]" ,
123
126
" startWith(Array[T], Scheduler)" -> " [use `Observable.items(items).subscribeOn(scheduler) ++ o`]" ,
@@ -151,6 +154,8 @@ class CompletenessTest extends JUnitSuite {
151
154
" toSortedList(Func2[_ >: T, _ >: T, Integer])" -> " [Sorting is already done in Scala's collection library, use `.toSeq.map(_.sortWith(f))`]" ,
152
155
" window(Long, Long, TimeUnit)" -> " window(Duration, Duration)" ,
153
156
" window(Long, Long, TimeUnit, Scheduler)" -> " window(Duration, Duration, Scheduler)" ,
157
+ " zip(Observable[_ <: T2], Func2[_ >: T, _ >: T2, _ <: R])" -> " zipWith(Observable[U], (T, U) => R)" ,
158
+ " zip(Iterable[_ <: T2], Func2[_ >: T, _ >: T2, _ <: R])" -> " zip(Iterable[U], (T, U) => R)" ,
154
159
155
160
// manually added entries for Java static methods
156
161
" average(Observable[Integer])" -> averageProblem,
0 commit comments