final class com.google.common.util.concurrent.Futures$InCompletionOrderState<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.util.concurrent.Futures$InCompletionOrderState
super_class: java.lang.Object
{
private boolean wasCancelled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean shouldInterrupt;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.concurrent.atomic.AtomicInteger incompleteOutputCount;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.common.util.concurrent.ListenableFuture<? extends T>[] inputFutures;
descriptor: [Lcom/google/common/util/concurrent/ListenableFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;
private volatile int delegateIndex;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private void <init>(com.google.common.util.concurrent.ListenableFuture<? extends T>[]);
descriptor: ([Lcom/google/common/util/concurrent/ListenableFuture;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.wasCancelled:Z
2: aload 0
iconst_1
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.shouldInterrupt:Z
3: aload 0
iconst_0
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.delegateIndex:I
4: aload 0
aload 1
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.inputFutures:[Lcom/google/common/util/concurrent/ListenableFuture;
5: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
aload 1
arraylength
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.incompleteOutputCount:Ljava/util/concurrent/atomic/AtomicInteger;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/util/concurrent/Futures$InCompletionOrderState<TT;>;
0 7 1 inputFutures [Lcom/google/common/util/concurrent/ListenableFuture;
Signature: ([Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;)V
MethodParameters:
Name Flags
inputFutures
private void recordOutputCancellation(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.wasCancelled:Z
1: iload 1
ifne 3
2: aload 0
iconst_0
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.shouldInterrupt:Z
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.util.concurrent.Futures$InCompletionOrderState.recordCompletion:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/util/concurrent/Futures$InCompletionOrderState<TT;>;
0 5 1 interruptIfRunning Z
MethodParameters:
Name Flags
interruptIfRunning
private void recordInputCompletion(com.google.common.collect.ImmutableList<com.google.common.util.concurrent.AbstractFuture<T>>, );
descriptor: (Lcom/google/common/collect/ImmutableList;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.inputFutures:[Lcom/google/common/util/concurrent/ListenableFuture;
iload 2
aaload
astore 3
start local 3 1: aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.inputFutures:[Lcom/google/common/util/concurrent/ListenableFuture;
iload 2
aconst_null
aastore
2: aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.delegateIndex:I
istore 4
start local 4 3: goto 9
4: StackMap locals: com.google.common.util.concurrent.ListenableFuture int
StackMap stack:
aload 1
iload 4
invokevirtual com.google.common.collect.ImmutableList.get:(I)Ljava/lang/Object;
checkcast com.google.common.util.concurrent.AbstractFuture
aload 3
invokevirtual com.google.common.util.concurrent.AbstractFuture.setFuture:(Lcom/google/common/util/concurrent/ListenableFuture;)Z
ifeq 8
5: aload 0
invokevirtual com.google.common.util.concurrent.Futures$InCompletionOrderState.recordCompletion:()V
6: aload 0
iload 4
iconst_1
iadd
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.delegateIndex:I
7: return
8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 1
invokevirtual com.google.common.collect.ImmutableList.size:()I
if_icmplt 4
end local 4 10: aload 0
aload 1
invokevirtual com.google.common.collect.ImmutableList.size:()I
putfield com.google.common.util.concurrent.Futures$InCompletionOrderState.delegateIndex:I
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/common/util/concurrent/Futures$InCompletionOrderState<TT;>;
0 12 1 delegates Lcom/google/common/collect/ImmutableList<Lcom/google/common/util/concurrent/AbstractFuture<TT;>;>;
0 12 2 inputFutureIndex I
1 12 3 inputFuture Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;
3 10 4 i I
Signature: (Lcom/google/common/collect/ImmutableList<Lcom/google/common/util/concurrent/AbstractFuture<TT;>;>;I)V
MethodParameters:
Name Flags
delegates
inputFutureIndex
private void recordCompletion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.incompleteOutputCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
ifne 7
aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.wasCancelled:Z
ifeq 7
1: aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.inputFutures:[Lcom/google/common/util/concurrent/ListenableFuture;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 6
StackMap locals: com.google.common.util.concurrent.Futures$InCompletionOrderState top int int com.google.common.util.concurrent.ListenableFuture[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
ifnull 5
4: aload 1
aload 0
getfield com.google.common.util.concurrent.Futures$InCompletionOrderState.shouldInterrupt:Z
invokeinterface com.google.common.util.concurrent.ListenableFuture.cancel:(Z)Z
pop
end local 1 5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 3
if_icmplt 2
7: StackMap locals: com.google.common.util.concurrent.Futures$InCompletionOrderState
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/util/concurrent/Futures$InCompletionOrderState<TT;>;
3 5 1 toCancel Lcom/google/common/util/concurrent/ListenableFuture<*>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "Futures.java"
NestHost: com.google.common.util.concurrent.Futures
InnerClasses:
private final InCompletionOrderState = com.google.common.util.concurrent.Futures$InCompletionOrderState of com.google.common.util.concurrent.Futures