publicfinal Subscription subscribe(final Action1<?super T> onNext){if(onNext == null){thrownewIllegalArgumentException("onNext can not be null");}// 如果传入的Action 不为空,则进行转换,源码里进行调用onNext方法returnsubscribe(newSubscriber<T>(){@OverridepublicfinalvoidonCompleted(){// do nothing}@OverridepublicfinalvoidonError(Throwable e){thrownewOnErrorNotImplementedException(e);}@OverridepublicfinalvoidonNext(T args){//看这句,在这里直接调用参数onNext里Action的call方法
onNext.call(args);}});}