final class io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator<T> implements org.reactivestreams.Subscription
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator
super_class: java.lang.Object
{
final org.reactivestreams.Subscriber<? super T> downstream;
descriptor: Lorg/reactivestreams/Subscriber;
flags: (0x0010) ACC_FINAL
Signature: Lorg/reactivestreams/Subscriber<-TT;>;
final io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber<T>[] subscribers;
descriptor: [Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
flags: (0x0010) ACC_FINAL
Signature: [Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber<TT;>;
final java.util.concurrent.atomic.AtomicInteger winner;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0010) ACC_FINAL
void <init>(org.reactivestreams.Subscriber<? super T>, );
descriptor: (Lorg/reactivestreams/Subscriber;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.flowable.FlowableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
putfield io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator.downstream:Lorg/reactivestreams/Subscriber;
3: aload 0
iload 2
anewarray io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber
putfield io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator.subscribers:[Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
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/flowable/FlowableAmb$AmbCoordinator<TT;>;
0 5 1 actual Lorg/reactivestreams/Subscriber<-TT;>;
0 5 2 count I
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;I)V
MethodParameters:
Name Flags
actual
count
public void subscribe(org.reactivestreams.Publisher<? extends T>[]);
descriptor: ([Lorg/reactivestreams/Publisher;)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.flowable.FlowableAmb$AmbCoordinator.subscribers:[Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
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.flowable.FlowableAmb$AmbInnerSubscriber[] int int
StackMap stack:
aload 2
iload 4
new io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber
dup
aload 0
iload 4
iconst_1
iadd
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator.downstream:Lorg/reactivestreams/Subscriber;
invokespecial io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber.<init>:(Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbCoordinator;ILorg/reactivestreams/Subscriber;)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.flowable.FlowableAmb$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.flowable.FlowableAmb$AmbCoordinator.downstream:Lorg/reactivestreams/Subscriber;
aload 0
invokeinterface org.reactivestreams.Subscriber.onSubscribe:(Lorg/reactivestreams/Subscription;)V
9: iconst_0
istore 4
start local 4 10: goto 15
11: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableAmb$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 org.reactivestreams.Publisher.subscribe:(Lorg/reactivestreams/Subscriber;)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/flowable/FlowableAmb$AmbCoordinator<TT;>;
0 17 1 sources [Lorg/reactivestreams/Publisher;
1 17 2 as [Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
2 17 3 len I
3 7 4 i I
10 16 4 i I
Signature: ([Lorg/reactivestreams/Publisher<+TT;>;)V
MethodParameters:
Name Flags
sources
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: lload 1
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.validate:(J)Z
ifeq 11
1: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 3
start local 3 2: iload 3
ifle 5
3: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator.subscribers:[Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
iload 3
iconst_1
isub
aaload
lload 1
invokevirtual io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber.request:(J)V
4: goto 11
5: StackMap locals: int
StackMap stack:
iload 3
ifne 11
6: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator.subscribers:[Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 10
StackMap locals: io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator long int top int int io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber[]
StackMap stack:
7: aload 7
iload 5
aaload
astore 4
start local 4 8: aload 4
lload 1
invokevirtual io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber.request:(J)V
end local 4 9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
iload 6
if_icmplt 7
end local 3 11: StackMap locals: io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator long
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbCoordinator<TT;>;
0 12 1 n J
2 11 3 w I
8 9 4 a Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber<TT;>;
MethodParameters:
Name Flags
n
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.flowable.FlowableAmb$AmbCoordinator.winner:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 2
start local 2 1: iload 2
ifne 12
2: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableAmb$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.flowable.FlowableAmb$AmbCoordinator.subscribers:[Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
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.flowable.FlowableAmb$AmbCoordinator int int io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber[] 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.flowable.FlowableAmb$AmbInnerSubscriber.cancel:()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
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbCoordinator<TT;>;
0 13 1 index I
1 13 2 w I
4 12 3 a [Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
5 12 4 n I
6 11 5 i I
MethodParameters:
Name Flags
index
public void cancel();
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.flowable.FlowableAmb$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.flowable.FlowableAmb$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.flowable.FlowableAmb$AmbCoordinator.subscribers:[Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 6
StackMap locals: io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator top int int io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber[]
StackMap stack:
3: aload 4
iload 2
aaload
astore 1
start local 1 4: aload 1
invokevirtual io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber.cancel:()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.flowable.FlowableAmb$AmbCoordinator
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbCoordinator<TT;>;
4 5 1 a Lio/reactivex/internal/operators/flowable/FlowableAmb$AmbInnerSubscriber<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/reactivestreams/Subscription;
SourceFile: "FlowableAmb.java"
NestHost: io.reactivex.internal.operators.flowable.FlowableAmb
InnerClasses:
final AmbCoordinator = io.reactivex.internal.operators.flowable.FlowableAmb$AmbCoordinator of io.reactivex.internal.operators.flowable.FlowableAmb
final AmbInnerSubscriber = io.reactivex.internal.operators.flowable.FlowableAmb$AmbInnerSubscriber of io.reactivex.internal.operators.flowable.FlowableAmb