本文整理汇总了Java中rx.annotations.Beta类的典型用法代码示例。如果您正苦于以下问题:Java Beta类的具体用法?Java Beta怎么用?Java Beta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Beta类属于rx.annotations包,在下文中一共展示了Beta类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getValues
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public T[] getValues(T[] a) {
Object o = this.state.getLatest();
if (this.nl.isNext(o)) {
if (a.length == 0) {
a = (Object[]) ((Object[]) Array.newInstance(a.getClass().getComponentType(), 1));
}
a[0] = this.nl.getValue(o);
if (a.length > 1) {
a[1] = null;
}
} else if (a.length > 0) {
a[0] = null;
}
return a;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:17,代码来源:BehaviorSubject.java
示例2: flatMap
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public final <R> Observable<R> flatMap(Func1<? super T, ? extends Observable<? extends R>> func, int maxConcurrent) {
if (getClass() == ScalarSynchronousObservable.class) {
return ((ScalarSynchronousObservable) this).scalarFlatMap(func);
}
return merge(map(func), maxConcurrent);
}
开发者ID:JackChan1999,项目名称:letv,代码行数:8,代码来源:Observable.java
示例3: getThrowable
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public Throwable getThrowable() {
NotificationLite<T> nl = this.ssm.nl;
Object o = this.ssm.getLatest();
if (nl.isError(o)) {
return nl.getError(o);
}
return null;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:10,代码来源:ReplaySubject.java
示例4: getValues
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public Object[] getValues() {
T[] r = getValues(EMPTY_ARRAY);
if (r == EMPTY_ARRAY) {
return new Object[0];
}
return r;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:ReplaySubject.java
示例5: getValue
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public T getValue() {
Object v = this.lastValue;
if (this.nl.isError(this.state.getLatest()) || !this.nl.isNext(v)) {
return null;
}
return this.nl.getValue(v);
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:AsyncSubject.java
示例6: getThrowable
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public Throwable getThrowable() {
Object o = this.state.getLatest();
if (this.nl.isError(o)) {
return this.nl.getError(o);
}
return null;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:AsyncSubject.java
示例7: getValue
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public T getValue() {
Object o = this.state.getLatest();
if (this.nl.isNext(o)) {
return this.nl.getValue(o);
}
return null;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:BehaviorSubject.java
示例8: autoConnect
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public Observable<T> autoConnect(int numberOfSubscribers, Action1<? super Subscription> connection) {
if (numberOfSubscribers > 0) {
return create(new OnSubscribeAutoConnect(this, numberOfSubscribers, connection));
}
connect(connection);
return this;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:ConnectableObservable.java
示例9: handleOnNextValueRendering
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public final String handleOnNextValueRendering(Object item) {
try {
return render(item);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
return item.getClass().getName() + ERROR_IN_RENDERING_SUFFIX;
} catch (Throwable t) {
Exceptions.throwIfFatal(t);
return item.getClass().getName() + ERROR_IN_RENDERING_SUFFIX;
}
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:13,代码来源:RxJavaErrorHandler.java
示例10: create
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public static <S, T> Observable<T> create(SyncOnSubscribe<S, T> syncOnSubscribe) {
return new Observable(hook.onCreate(syncOnSubscribe));
}
开发者ID:JackChan1999,项目名称:letv,代码行数:5,代码来源:Observable.java
示例11: toSingle
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public Single<T> toSingle() {
return new Single(OnSubscribeSingle.create(this));
}
开发者ID:JackChan1999,项目名称:letv,代码行数:5,代码来源:Observable.java
示例12: fromCallable
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public static <T> Observable<T> fromCallable(Callable<? extends T> func) {
return create(new OnSubscribeFromCallable(func));
}
开发者ID:JackChan1999,项目名称:letv,代码行数:5,代码来源:Observable.java
示例13: doOnRequest
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public final Observable<T> doOnRequest(Action1<Long> onRequest) {
return lift(new OperatorDoOnRequest(onRequest));
}
开发者ID:JackChan1999,项目名称:letv,代码行数:5,代码来源:Observable.java
示例14: flatMapIterable
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public final <R> Observable<R> flatMapIterable(Func1<? super T, ? extends Iterable<? extends R>> collectionSelector, int maxConcurrent) {
return OnSubscribeFlattenIterable.createFrom(this, collectionSelector, maxConcurrent);
}
开发者ID:JackChan1999,项目名称:letv,代码行数:5,代码来源:Observable.java
示例15: hasThrowable
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public boolean hasThrowable() {
return this.ssm.nl.isError(this.ssm.getLatest());
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:ReplaySubject.java
示例16: hasCompleted
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public boolean hasCompleted() {
NotificationLite<T> nl = this.ssm.nl;
Object o = this.ssm.getLatest();
return (o == null || nl.isError(o)) ? false : true;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:7,代码来源:ReplaySubject.java
示例17: size
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public int size() {
return this.state.size();
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:ReplaySubject.java
示例18: hasAnyValue
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public boolean hasAnyValue() {
return !this.state.isEmpty();
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:ReplaySubject.java
示例19: hasValue
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public boolean hasValue() {
return hasAnyValue();
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:ReplaySubject.java
示例20: getValue
import rx.annotations.Beta; //导入依赖的package包/类
@Beta
public T getValue() {
return this.state.latest();
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:ReplaySubject.java
注:本文中的rx.annotations.Beta类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论