@@ -253,6 +253,9 @@ public static <R> Nono using(Callable<R> resourceSupplier, Function<? super R, ?
253
253
254
254
public static <R > Nono using (Callable <R > resourceSupplier , Function <? super R , ? extends Nono > sourceSupplier ,
255
255
Consumer <? super R > disposer , boolean eager ) {
256
+ ObjectHelper .requireNonNull (resourceSupplier , "resourceSupplier is null" );
257
+ ObjectHelper .requireNonNull (sourceSupplier , "sourceSupplier is null" );
258
+ ObjectHelper .requireNonNull (disposer , "disposer is null" );
256
259
// TODO implement
257
260
throw new UnsupportedOperationException ();
258
261
}
@@ -290,11 +293,14 @@ public static Nono fromObservable(ObservableSource<?> source) {
290
293
// -----------------------------------------------------------
291
294
292
295
public final <T > Flowable <T > andThen (Publisher <? extends T > other ) {
296
+ ObjectHelper .requireNonNull (other , "other is null" );
293
297
// TODO implement
294
298
throw new UnsupportedOperationException ();
295
299
}
296
300
297
301
public final Nono andThen (Nono other ) {
302
+ ObjectHelper .requireNonNull (other , "other is null" );
303
+ // TODO implement
298
304
throw new UnsupportedOperationException ();
299
305
}
300
306
@@ -305,10 +311,13 @@ public final Nono delay(long delay, TimeUnit unit) {
305
311
306
312
@ SchedulerSupport (SchedulerSupport .CUSTOM )
307
313
public final Nono delay (long delay , TimeUnit unit , Scheduler scheduler ) {
314
+ ObjectHelper .requireNonNull (unit , "unit is null" );
315
+ ObjectHelper .requireNonNull (scheduler , "scheduler is null" );
308
316
return onAssembly (new NonoDelay (this , delay , unit , scheduler ));
309
317
}
310
318
311
319
public final Nono delaySubscription (Publisher <?> other ) {
320
+ ObjectHelper .requireNonNull (other , "other is null" );
312
321
// TODO implement
313
322
throw new UnsupportedOperationException ();
314
323
}
@@ -330,11 +339,16 @@ public final Nono timeout(long delay, TimeUnit unit, Nono fallback) {
330
339
}
331
340
332
341
public final Nono timeout (long delay , TimeUnit unit , Scheduler scheduler ) {
342
+ ObjectHelper .requireNonNull (unit , "unit is null" );
343
+ ObjectHelper .requireNonNull (scheduler , "scheduler is null" );
333
344
// TODO implement
334
345
throw new UnsupportedOperationException ();
335
346
}
336
347
337
348
public final Nono timeout (long delay , TimeUnit unit , Scheduler scheduler , Nono fallback ) {
349
+ ObjectHelper .requireNonNull (unit , "unit is null" );
350
+ ObjectHelper .requireNonNull (scheduler , "scheduler is null" );
351
+ ObjectHelper .requireNonNull (fallback , "fallback is null" );
338
352
// TODO implement
339
353
throw new UnsupportedOperationException ();
340
354
}
@@ -344,17 +358,20 @@ public final Nono onErrorComplete() {
344
358
}
345
359
346
360
public final Nono onErrorResumeNext (Function <? super Throwable , ? extends Nono > errorHandler ) {
361
+ ObjectHelper .requireNonNull (errorHandler , "errorHandler is null" );
347
362
// TODO implement
348
363
throw new UnsupportedOperationException ();
349
364
}
350
365
351
366
public final Nono mapError (Function <? super Throwable , ? extends Throwable > mapper ) {
352
- // TODO implement
353
- throw new UnsupportedOperationException ( );
367
+ ObjectHelper . requireNonNull ( mapper , "mapper is null" );
368
+ return onAssembly ( new NonoMapError ( this , mapper ) );
354
369
}
355
370
356
371
public final <T > Flowable <T > flatMap (Function <? super Throwable , ? extends Publisher <? extends T >> onErrorMapper ,
357
372
Callable <? extends Publisher <? extends T >> onCompleteMapper ) {
373
+ ObjectHelper .requireNonNull (onErrorMapper , "onErrorMapper is null" );
374
+ ObjectHelper .requireNonNull (onCompleteMapper , "onCompleteMapper is null" );
358
375
// TODO implement
359
376
throw new UnsupportedOperationException ();
360
377
}
@@ -401,47 +418,101 @@ public final <T> Maybe<T> toMaybe() {
401
418
}
402
419
403
420
public final Nono subscribeOn (Scheduler scheduler ) {
421
+ ObjectHelper .requireNonNull (scheduler , "scheduler is null" );
404
422
return onAssembly (new NonoSubscribeOn (this , scheduler ));
405
423
}
406
424
407
425
public final Nono observeOn (Scheduler scheduler ) {
426
+ ObjectHelper .requireNonNull (scheduler , "scheduler is null" );
408
427
return onAssembly (new NonoObserveOn (this , scheduler ));
409
428
}
410
429
411
430
public final Nono unsubscribeOn (Scheduler scheduler ) {
431
+ ObjectHelper .requireNonNull (scheduler , "scheduler is null" );
412
432
// TODO implement
413
433
throw new UnsupportedOperationException ();
414
434
}
415
435
416
436
public final Nono doOnComplete (Action action ) {
437
+ ObjectHelper .requireNonNull (action , "action is null" );
417
438
// TODO implement
418
439
throw new UnsupportedOperationException ();
419
440
}
420
441
421
442
public final Nono doOnError (Consumer <? super Throwable > error ) {
443
+ ObjectHelper .requireNonNull (error , "error is null" );
422
444
// TODO implement
423
445
throw new UnsupportedOperationException ();
424
446
}
425
447
426
448
public final Nono doAfterComplete (Action action ) {
449
+ ObjectHelper .requireNonNull (action , "action is null" );
427
450
// TODO implement
428
451
throw new UnsupportedOperationException ();
429
452
}
430
453
431
454
public final Nono doAfterTerminate (Action action ) {
455
+ ObjectHelper .requireNonNull (action , "action is null" );
432
456
// TODO implement
433
457
throw new UnsupportedOperationException ();
434
458
}
435
459
436
460
public final Nono doFinally (Action action ) {
461
+ ObjectHelper .requireNonNull (action , "action is null" );
437
462
// TODO implement
438
463
throw new UnsupportedOperationException ();
439
464
}
440
465
441
466
public final Nono doOnCancel (Action action ) {
467
+ ObjectHelper .requireNonNull (action , "action is null" );
468
+ // TODO implement
469
+ throw new UnsupportedOperationException ();
470
+ }
471
+
472
+ public final Nono repeat () {
473
+ // TODO implement
474
+ throw new UnsupportedOperationException ();
475
+ }
476
+
477
+ public final Nono repeat (long times ) {
442
478
// TODO implement
443
479
throw new UnsupportedOperationException ();
444
480
}
481
+
482
+ public final Nono repeat (BooleanSupplier stop ) {
483
+ ObjectHelper .requireNonNull (stop , "stop is null" );
484
+ // TODO implement
485
+ throw new UnsupportedOperationException ();
486
+ }
487
+
488
+ public final Nono repeatWhen (Function <Flowable <Object >, Publisher <?>> handler ) {
489
+ ObjectHelper .requireNonNull (handler , "handler is null" );
490
+ // TODO implement
491
+ throw new UnsupportedOperationException ();
492
+ }
493
+
494
+ public final Nono retry () {
495
+ // TODO implement
496
+ throw new UnsupportedOperationException ();
497
+ }
498
+
499
+ public final Nono retry (long times ) {
500
+ // TODO implement
501
+ throw new UnsupportedOperationException ();
502
+ }
503
+
504
+ public final Nono retry (Predicate <? super Throwable > predicate ) {
505
+ ObjectHelper .requireNonNull (predicate , "predicate is null" );
506
+ // TODO implement
507
+ throw new UnsupportedOperationException ();
508
+ }
509
+
510
+ public final Nono retryWhen (Function <Flowable <Throwable >, Publisher <?>> handler ) {
511
+ ObjectHelper .requireNonNull (handler , "handler is null" );
512
+ // TODO implement
513
+ throw new UnsupportedOperationException ();
514
+ }
515
+
445
516
// -----------------------------------------------------------
446
517
// Consumers and subscribers (leave)
447
518
// -----------------------------------------------------------
0 commit comments