public class org.apache.commons.collections4.iterators.PermutationIterator<E> implements java.util.Iterator<java.util.List<E>>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.PermutationIterator
super_class: java.lang.Object
{
private final int[] keys;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.Integer, E> objectMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;TE;>;
private final boolean[] direction;
descriptor: [Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.List<E> nextPermutation;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<TE;>;
public void <init>(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "The collection must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.commons.collections4.iterators.PermutationIterator java.util.Collection
StackMap stack:
aload 0
aload 1
invokeinterface java.util.Collection.size:()I
newarray 10
putfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
4: aload 0
aload 1
invokeinterface java.util.Collection.size:()I
newarray 4
putfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
5: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iconst_0
invokestatic java.util.Arrays.fill:([ZZ)V
6: iconst_1
istore 2
start local 2 7: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.commons.collections4.iterators.PermutationIterator.objectMap:Ljava/util/Map;
8: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 13
StackMap locals: org.apache.commons.collections4.iterators.PermutationIterator java.util.Collection int top java.util.Iterator
StackMap stack:
9: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 10: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.objectMap:Ljava/util/Map;
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 2
iconst_1
isub
iload 2
iastore
12: iinc 2 1
end local 3 13: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
14: aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield org.apache.commons.collections4.iterators.PermutationIterator.nextPermutation:Ljava/util/List;
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/commons/collections4/iterators/PermutationIterator<TE;>;
0 16 1 coll Ljava/util/Collection<+TE;>;
7 16 2 value I
10 13 3 e TE;
Signature: (Ljava/util/Collection<+TE;>;)V
MethodParameters:
Name Flags
coll final
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.nextPermutation:Ljava/util/List;
ifnull 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 Lorg/apache/commons/collections4/iterators/PermutationIterator<TE;>;
public java.util.List<E> next();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.PermutationIterator.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iconst_m1
istore 1
start local 1 3: iconst_m1
istore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 12
6: StackMap locals: int int int
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 3
baload
ifeq 7
iload 3
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
arraylength
iconst_1
isub
if_icmpge 7
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 3
iaload
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 3
iconst_1
iadd
iaload
if_icmpgt 8
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 3
baload
ifne 11
iload 3
ifle 11
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 3
iaload
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 3
iconst_1
isub
iaload
if_icmple 11
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 3
iaload
iload 2
if_icmple 11
9: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 3
iaload
istore 2
10: iload 3
istore 1
11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
arraylength
if_icmplt 6
end local 3 13: iload 2
iconst_m1
if_icmpne 17
14: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.nextPermutation:Ljava/util/List;
astore 3
start local 3 15: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.PermutationIterator.nextPermutation:Ljava/util/List;
16: aload 3
areturn
end local 3 17: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 1
baload
ifeq 18
iconst_1
goto 19
StackMap locals:
StackMap stack:
18: iconst_m1
StackMap locals:
StackMap stack: int
19: istore 3
start local 3 20: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 1
iaload
istore 4
start local 4 21: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 1
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 1
iload 3
iadd
iaload
iastore
22: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 1
iload 3
iadd
iload 4
iastore
23: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 1
baload
istore 5
start local 5 24: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 1
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 1
iload 3
iadd
baload
bastore
25: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 1
iload 3
iadd
iload 5
bastore
26: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 27: iconst_0
istore 7
start local 7 28: goto 35
29: StackMap locals: org.apache.commons.collections4.iterators.PermutationIterator int int int int int java.util.List int
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 7
iaload
iload 2
if_icmple 33
30: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 7
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.direction:[Z
iload 7
baload
ifeq 31
iconst_0
goto 32
StackMap locals: org.apache.commons.collections4.iterators.PermutationIterator int int int int int java.util.List int
StackMap stack: boolean[] int
31: iconst_1
StackMap locals: org.apache.commons.collections4.iterators.PermutationIterator int int int int int java.util.List int
StackMap stack: boolean[] int int
32: bastore
33: StackMap locals:
StackMap stack:
aload 6
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.objectMap:Ljava/util/Map;
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
iload 7
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
34: iinc 7 1
StackMap locals:
StackMap stack:
35: iload 7
aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.keys:[I
arraylength
if_icmplt 29
end local 7 36: aload 0
getfield org.apache.commons.collections4.iterators.PermutationIterator.nextPermutation:Ljava/util/List;
astore 7
start local 7 37: aload 0
aload 6
putfield org.apache.commons.collections4.iterators.PermutationIterator.nextPermutation:Ljava/util/List;
38: aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lorg/apache/commons/collections4/iterators/PermutationIterator<TE;>;
3 39 1 indexOfLargestMobileInteger I
4 39 2 largestKey I
5 13 3 i I
15 17 3 toReturn Ljava/util/List<TE;>;
20 39 3 offset I
21 39 4 tmpKey I
24 39 5 tmpDirection Z
27 39 6 nextP Ljava/util/List<TE;>;
28 36 7 i I
37 39 7 result Ljava/util/List<TE;>;
Signature: ()Ljava/util/List<TE;>;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "remove() is not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/PermutationIterator<TE;>;
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.commons.collections4.iterators.PermutationIterator.next:()Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<Ljava/util/List<TE;>;>;
SourceFile: "PermutationIterator.java"