io.reactivex.MaybeTransformer Java Examples
The following examples show how to use
io.reactivex.MaybeTransformer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MaybeUseCase.java From EasyMVP with Apache License 2.0 | 5 votes |
public MaybeUseCase(final UseCaseExecutor useCaseExecutor, final PostExecutionThread postExecutionThread) { super(useCaseExecutor, postExecutionThread); schedulersTransformer = new MaybeTransformer<R, R>() { @Override public Maybe<R> apply(Maybe<R> single) { return single.subscribeOn(useCaseExecutor.getScheduler()) .observeOn(postExecutionThread.getScheduler()); } }; }
Example #2
Source File: RxThreadUtils.java From Pixiv-Shaft with MIT License | 4 votes |
/** * Maybe 切换到主线程 */ public static <T> MaybeTransformer<T, T> maybeToMain() { return upstream -> upstream.subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()); }
Example #3
Source File: MaybeUseCase.java From EasyMVP with Apache License 2.0 | 4 votes |
private MaybeTransformer<? super R, ? extends R> getSchedulersTransformer() { return schedulersTransformer; }
Example #4
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(Class<T> mappedType) { return new MaybeUnmarshaller<>(Buffer::getDelegate, mappedType); }
Example #5
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(TypeReference<T> mappedTypeRef) { return new MaybeUnmarshaller<>(Buffer::getDelegate, mappedTypeRef); }
Example #6
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(Class<T> mappedType, ObjectCodec mapper) { return new MaybeUnmarshaller<>(Buffer::getDelegate, mappedType, mapper); }
Example #7
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(TypeReference<T> mappedTypeRef, ObjectCodec mapper) { return new MaybeUnmarshaller<>(Buffer::getDelegate, mappedTypeRef, mapper); }
Example #8
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(Class<T> mappedType) { return new MaybeUnmarshaller<>(java.util.function.Function.identity(), mappedType); }
Example #9
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(TypeReference<T> mappedTypeRef) { return new MaybeUnmarshaller<>(java.util.function.Function.identity(), mappedTypeRef); }
Example #10
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(Class<T> mappedType, ObjectCodec mapper) { return new MaybeUnmarshaller<>(java.util.function.Function.identity(), mappedType, mapper); }
Example #11
Source File: MaybeHelper.java From vertx-rx with Apache License 2.0 | 4 votes |
public static <T> MaybeTransformer<Buffer, T> unmarshaller(TypeReference<T> mappedTypeRef, ObjectCodec mapper) { return new MaybeUnmarshaller<>(java.util.function.Function.identity(), mappedTypeRef, mapper); }