@@ -3500,7 +3500,7 @@ public static Flowable<Long> rangeLong(long start, long count) {
3500
3500
}
3501
3501
3502
3502
/**
3503
- * Returns a Flowable that emits a Boolean value that indicates whether two Publisher sequences are the
3503
+ * Returns a Single that emits a Boolean value that indicates whether two Publisher sequences are the
3504
3504
* same by comparing the items emitted by each Publisher pairwise.
3505
3505
* <p>
3506
3506
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/sequenceEqual.png" alt="">
@@ -3523,12 +3523,12 @@ public static Flowable<Long> rangeLong(long start, long count) {
3523
3523
*/
3524
3524
@BackpressureSupport(BackpressureKind.FULL)
3525
3525
@SchedulerSupport(SchedulerSupport.NONE)
3526
- public static <T> Flowable <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2) {
3526
+ public static <T> Single <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2) {
3527
3527
return sequenceEqual(source1, source2, ObjectHelper.equalsPredicate(), bufferSize());
3528
3528
}
3529
3529
3530
3530
/**
3531
- * Returns a Flowable that emits a Boolean value that indicates whether two Publisher sequences are the
3531
+ * Returns a Single that emits a Boolean value that indicates whether two Publisher sequences are the
3532
3532
* same by comparing the items emitted by each Publisher pairwise based on the results of a specified
3533
3533
* equality function.
3534
3534
* <p>
@@ -3549,19 +3549,19 @@ public static <T> Flowable<Boolean> sequenceEqual(Publisher<? extends T> source1
3549
3549
* a function used to compare items emitted by each Publisher
3550
3550
* @param <T>
3551
3551
* the type of items emitted by each Publisher
3552
- * @return a Flowable that emits a Boolean value that indicates whether the two Publisher sequences
3552
+ * @return a Single that emits a Boolean value that indicates whether the two Publisher sequences
3553
3553
* are the same according to the specified function
3554
3554
* @see <a href="http://reactivex.io/documentation/operators/sequenceequal.html">ReactiveX operators documentation: SequenceEqual</a>
3555
3555
*/
3556
3556
@BackpressureSupport(BackpressureKind.FULL)
3557
3557
@SchedulerSupport(SchedulerSupport.NONE)
3558
- public static <T> Flowable <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2,
3558
+ public static <T> Single <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2,
3559
3559
BiPredicate<? super T, ? super T> isEqual) {
3560
3560
return sequenceEqual(source1, source2, isEqual, bufferSize());
3561
3561
}
3562
3562
3563
3563
/**
3564
- * Returns a Flowable that emits a Boolean value that indicates whether two Publisher sequences are the
3564
+ * Returns a Single that emits a Boolean value that indicates whether two Publisher sequences are the
3565
3565
* same by comparing the items emitted by each Publisher pairwise based on the results of a specified
3566
3566
* equality function.
3567
3567
* <p>
@@ -3584,23 +3584,23 @@ public static <T> Flowable<Boolean> sequenceEqual(Publisher<? extends T> source1
3584
3584
* the number of items to prefetch from the first and second source Publisher
3585
3585
* @param <T>
3586
3586
* the type of items emitted by each Publisher
3587
- * @return a Flowable that emits a Boolean value that indicates whether the two Publisher sequences
3587
+ * @return a Single that emits a Boolean value that indicates whether the two Publisher sequences
3588
3588
* are the same according to the specified function
3589
3589
* @see <a href="http://reactivex.io/documentation/operators/sequenceequal.html">ReactiveX operators documentation: SequenceEqual</a>
3590
3590
*/
3591
3591
@BackpressureSupport(BackpressureKind.FULL)
3592
3592
@SchedulerSupport(SchedulerSupport.NONE)
3593
- public static <T> Flowable <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2,
3593
+ public static <T> Single <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2,
3594
3594
BiPredicate<? super T, ? super T> isEqual, int bufferSize) {
3595
3595
ObjectHelper.requireNonNull(source1, "source1 is null");
3596
3596
ObjectHelper.requireNonNull(source2, "source2 is null");
3597
3597
ObjectHelper.requireNonNull(isEqual, "isEqual is null");
3598
3598
ObjectHelper.verifyPositive(bufferSize, "bufferSize");
3599
- return RxJavaPlugins.onAssembly(new FlowableSequenceEqual <T>(source1, source2, isEqual, bufferSize));
3599
+ return RxJavaPlugins.onAssembly(new FlowableSequenceEqualSingle <T>(source1, source2, isEqual, bufferSize));
3600
3600
}
3601
3601
3602
3602
/**
3603
- * Returns a Flowable that emits a Boolean value that indicates whether two Publisher sequences are the
3603
+ * Returns a Single that emits a Boolean value that indicates whether two Publisher sequences are the
3604
3604
* same by comparing the items emitted by each Publisher pairwise.
3605
3605
* <p>
3606
3606
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/sequenceEqual.png" alt="">
@@ -3620,12 +3620,12 @@ public static <T> Flowable<Boolean> sequenceEqual(Publisher<? extends T> source1
3620
3620
* the number of items to prefetch from the first and second source Publisher
3621
3621
* @param <T>
3622
3622
* the type of items emitted by each Publisher
3623
- * @return a Flowable that emits a Boolean value that indicates whether the two sequences are the same
3623
+ * @return a Single that emits a Boolean value that indicates whether the two sequences are the same
3624
3624
* @see <a href="http://reactivex.io/documentation/operators/sequenceequal.html">ReactiveX operators documentation: SequenceEqual</a>
3625
3625
*/
3626
3626
@BackpressureSupport(BackpressureKind.FULL)
3627
3627
@SchedulerSupport(SchedulerSupport.NONE)
3628
- public static <T> Flowable <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2, int bufferSize) {
3628
+ public static <T> Single <Boolean> sequenceEqual(Publisher<? extends T> source1, Publisher<? extends T> source2, int bufferSize) {
3629
3629
return sequenceEqual(source1, source2, ObjectHelper.equalsPredicate(), bufferSize);
3630
3630
}
3631
3631
@@ -5196,7 +5196,7 @@ public final T blockingLast(T defaultItem) {
5196
5196
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
5197
5197
@SchedulerSupport(SchedulerSupport.NONE)
5198
5198
public final Iterable<T> blockingLatest() {
5199
- return BlockingFlowableLatest.latest (this);
5199
+ return new BlockingFlowableLatest<T> (this);
5200
5200
}
5201
5201
5202
5202
/**
@@ -5222,7 +5222,7 @@ public final Iterable<T> blockingLatest() {
5222
5222
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
5223
5223
@SchedulerSupport(SchedulerSupport.NONE)
5224
5224
public final Iterable<T> blockingMostRecent(T initialItem) {
5225
- return BlockingFlowableMostRecent.mostRecent (this, initialItem);
5225
+ return new BlockingFlowableMostRecent<T> (this, initialItem);
5226
5226
}
5227
5227
5228
5228
/**
@@ -5245,7 +5245,7 @@ public final Iterable<T> blockingMostRecent(T initialItem) {
5245
5245
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
5246
5246
@SchedulerSupport(SchedulerSupport.NONE)
5247
5247
public final Iterable<T> blockingNext() {
5248
- return BlockingFlowableNext.next (this);
5248
+ return new BlockingFlowableNext<T> (this);
5249
5249
}
5250
5250
5251
5251
/**
@@ -5267,7 +5267,7 @@ public final Iterable<T> blockingNext() {
5267
5267
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
5268
5268
@SchedulerSupport(SchedulerSupport.NONE)
5269
5269
public final T blockingSingle() {
5270
- return singleElement ().blockingGet();
5270
+ return singleOrError ().blockingGet();
5271
5271
}
5272
5272
5273
5273
/**
@@ -7248,7 +7248,7 @@ public final <K> Flowable<T> distinct(Function<? super T, K> keySelector,
7248
7248
Callable<? extends Collection<? super K>> collectionSupplier) {
7249
7249
ObjectHelper.requireNonNull(keySelector, "keySelector is null");
7250
7250
ObjectHelper.requireNonNull(collectionSupplier, "collectionSupplier is null");
7251
- return FlowableDistinct.withCollection( this, keySelector, collectionSupplier);
7251
+ return RxJavaPlugins.onAssembly(new FlowableDistinct<T, K>( this, keySelector, collectionSupplier) );
7252
7252
}
7253
7253
7254
7254
/**
@@ -7271,7 +7271,7 @@ public final <K> Flowable<T> distinct(Function<? super T, K> keySelector,
7271
7271
@BackpressureSupport(BackpressureKind.FULL)
7272
7272
@SchedulerSupport(SchedulerSupport.NONE)
7273
7273
public final Flowable<T> distinctUntilChanged() {
7274
- return FlowableDistinct. <T>untilChanged (this);
7274
+ return new FlowableDistinctUntilChanged <T>(this, Functions.equalsPredicate() );
7275
7275
}
7276
7276
7277
7277
/**
@@ -7299,7 +7299,7 @@ public final Flowable<T> distinctUntilChanged() {
7299
7299
@SchedulerSupport(SchedulerSupport.NONE)
7300
7300
public final <K> Flowable<T> distinctUntilChanged(Function<? super T, K> keySelector) {
7301
7301
ObjectHelper.requireNonNull(keySelector, "keySelector is null");
7302
- return FlowableDistinct.untilChanged (this, keySelector);
7302
+ return new FlowableDistinctUntilChanged<T> (this, Functions.equalsPredicate( keySelector) );
7303
7303
}
7304
7304
7305
7305
/**
@@ -13734,7 +13734,7 @@ public final Single<List<T>> toList(final int capacityHint) {
13734
13734
}
13735
13735
13736
13736
/**
13737
- * Returns a Flowable that emits a single item, a list composed of all the items emitted by the source
13737
+ * Returns a Single that emits a single item, a list composed of all the items emitted by the source
13738
13738
* Publisher.
13739
13739
* <p>
13740
13740
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toList.png" alt="">
@@ -13758,15 +13758,15 @@ public final Single<List<T>> toList(final int capacityHint) {
13758
13758
* @param <U> the subclass of a collection of Ts
13759
13759
* @param collectionSupplier
13760
13760
* the Callable returning the collection (for each individual Subscriber) to be filled in
13761
- * @return a Flowable that emits a single item: a List containing all of the items emitted by the source
13761
+ * @return a Single that emits a single item: a List containing all of the items emitted by the source
13762
13762
* Publisher
13763
13763
* @see <a href="http://reactivex.io/documentation/operators/to.html">ReactiveX operators documentation: To</a>
13764
13764
*/
13765
13765
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
13766
13766
@SchedulerSupport(SchedulerSupport.NONE)
13767
- public final <U extends Collection<? super T>> Flowable <U> toList(Callable<U> collectionSupplier) {
13767
+ public final <U extends Collection<? super T>> Single <U> toList(Callable<U> collectionSupplier) {
13768
13768
ObjectHelper.requireNonNull(collectionSupplier, "collectionSupplier is null");
13769
- return RxJavaPlugins.onAssembly(new FlowableToList <T, U>(this, collectionSupplier));
13769
+ return RxJavaPlugins.onAssembly(new FlowableToListSingle <T, U>(this, collectionSupplier));
13770
13770
}
13771
13771
13772
13772
/**
0 commit comments