final class io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator<T> implements io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator
super_class: java.lang.Object
{
final io.reactivex.Observer<? super T> downstream;
descriptor: Lio/reactivex/Observer;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/Observer<-TT;>;
final io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver<T>[] observers;
descriptor: [Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
flags: (0x0010) ACC_FINAL
Signature: [Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver<TT;>;
final java.util.concurrent.atomic.AtomicInteger winner;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0010) ACC_FINAL
void <init>(io.reactivex.Observer<? super T>, );
descriptor: (Lio/reactivex/Observer;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
putfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.downstream:Lio/reactivex/Observer;
3: aload 0
iload 2
anewarray io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver
putfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.observers:[Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/internal/operators/observable/ObservableAmb$AmbCoordinator<TT;>;
0 5 1 actual Lio/reactivex/Observer<-TT;>;
0 5 2 count I
Signature: (Lio/reactivex/Observer<-TT;>;I)V
MethodParameters:
Name Flags
actual
count
public void subscribe(io.reactivex.ObservableSource<? extends T>[]);
descriptor: ([Lio/reactivex/ObservableSource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.observers:[Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
astore 2
start local 2 1: aload 2
arraylength
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 6
4: StackMap locals: io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver[] int int
StackMap stack:
aload 2
iload 4
new io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver
dup
aload 0
iload 4
iconst_1
iadd
aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.downstream:Lio/reactivex/Observer;
invokespecial io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver.<init>:(Lio/reactivex/internal/operators/observable/ObservableAmb$AmbCoordinator;ILio/reactivex/Observer;)V
aastore
5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 3
if_icmplt 4
end local 4 7: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicInteger.lazySet:(I)V
8: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.downstream:Lio/reactivex/Observer;
aload 0
invokeinterface io.reactivex.Observer.onSubscribe:(Lio/reactivex/disposables/Disposable;)V
9: iconst_0
istore 4
start local 4 10: goto 15
11: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifeq 13
12: return
13: StackMap locals:
StackMap stack:
aload 1
iload 4
aaload
aload 2
iload 4
aaload
invokeinterface io.reactivex.ObservableSource.subscribe:(Lio/reactivex/Observer;)V
14: iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
iload 3
if_icmplt 11
end local 4 16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/reactivex/internal/operators/observable/ObservableAmb$AmbCoordinator<TT;>;
0 17 1 sources [Lio/reactivex/ObservableSource;
1 17 2 as [Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
2 17 3 len I
3 7 4 i I
10 16 4 i I
Signature: ([Lio/reactivex/ObservableSource<+TT;>;)V
MethodParameters:
Name Flags
sources
public boolean win(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 2
start local 2 1: iload 2
ifne 13
2: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
iconst_0
iload 1
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 12
3: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.observers:[Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
astore 3
start local 3 4: aload 3
arraylength
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 10
7: StackMap locals: io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator int int io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver[] int int
StackMap stack:
iload 5
iconst_1
iadd
iload 1
if_icmpeq 9
8: aload 3
iload 5
aaload
invokevirtual io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver.dispose:()V
9: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
iload 4
if_icmplt 7
end local 5 11: iconst_1
ireturn
end local 4 end local 3 12: StackMap locals:
StackMap stack:
iconst_0
ireturn
13: StackMap locals:
StackMap stack:
iload 2
iload 1
if_icmpne 14
iconst_1
ireturn
StackMap locals:
StackMap stack:
14: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/reactivex/internal/operators/observable/ObservableAmb$AmbCoordinator<TT;>;
0 15 1 index I
1 15 2 w I
4 12 3 a [Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
5 12 4 n I
6 11 5 i I
MethodParameters:
Name Flags
index
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
iconst_m1
if_icmpeq 7
1: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
iconst_m1
invokevirtual java.util.concurrent.atomic.AtomicInteger.lazySet:(I)V
2: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.observers:[Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 6
StackMap locals: io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator top int int io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver[]
StackMap stack:
3: aload 4
iload 2
aaload
astore 1
start local 1 4: aload 1
invokevirtual io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver.dispose:()V
end local 1 5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 3
if_icmplt 3
7: StackMap locals: io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/operators/observable/ObservableAmb$AmbCoordinator<TT;>;
4 5 1 a Lio/reactivex/internal/operators/observable/ObservableAmb$AmbInnerObserver<TT;>;
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
iconst_m1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/observable/ObservableAmb$AmbCoordinator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/reactivex/disposables/Disposable;
SourceFile: "ObservableAmb.java"
NestHost: io.reactivex.internal.operators.observable.ObservableAmb
InnerClasses:
final AmbCoordinator = io.reactivex.internal.operators.observable.ObservableAmb$AmbCoordinator of io.reactivex.internal.operators.observable.ObservableAmb
final AmbInnerObserver = io.reactivex.internal.operators.observable.ObservableAmb$AmbInnerObserver of io.reactivex.internal.operators.observable.ObservableAmb