class org.apache.commons.math3.util.Combinations$LexicographicComparator implements java.util.Comparator<int[]>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.commons.math3.util.Combinations$LexicographicComparator
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 20130906
private final int n;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int k;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=2, 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
iload 1
putfield org.apache.commons.math3.util.Combinations$LexicographicComparator.n:I
2: aload 0
iload 2
putfield org.apache.commons.math3.util.Combinations$LexicographicComparator.k:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/math3/util/Combinations$LexicographicComparator;
0 4 1 n I
0 4 2 k I
MethodParameters:
Name Flags
n
k
public int compare(int[], int[]);
descriptor: ([I[I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.k:I
if_icmpeq 2
1: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
arraylength
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.k:I
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
arraylength
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.k:I
if_icmpeq 4
3: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 2
arraylength
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.k:I
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.commons.math3.util.MathArrays.copyOf:([I)[I
astore 3
start local 3 5: aload 3
invokestatic java.util.Arrays.sort:([I)V
6: aload 2
invokestatic org.apache.commons.math3.util.MathArrays.copyOf:([I)[I
astore 4
start local 4 7: aload 4
invokestatic java.util.Arrays.sort:([I)V
8: aload 0
aload 3
invokevirtual org.apache.commons.math3.util.Combinations$LexicographicComparator.lexNorm:([I)J
lstore 5
start local 5 9: aload 0
aload 4
invokevirtual org.apache.commons.math3.util.Combinations$LexicographicComparator.lexNorm:([I)J
lstore 7
start local 7 10: lload 5
lload 7
lcmp
ifge 12
11: iconst_m1
ireturn
12: StackMap locals: org.apache.commons.math3.util.Combinations$LexicographicComparator int[] int[] int[] int[] long long
StackMap stack:
lload 5
lload 7
lcmp
ifle 14
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 7 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 15 0 this Lorg/apache/commons/math3/util/Combinations$LexicographicComparator;
0 15 1 c1 [I
0 15 2 c2 [I
5 15 3 c1s [I
7 15 4 c2s [I
9 15 5 v1 J
10 15 7 v2 J
MethodParameters:
Name Flags
c1
c2
private long lexNorm(int[]);
descriptor: ([I)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: lconst_0
lstore 2
start local 2 1: iconst_0
istore 4
start local 4 2: goto 9
3: StackMap locals: long int
StackMap stack:
aload 1
iload 4
iaload
istore 5
start local 5 4: iload 5
iflt 6
5: iload 5
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.n:I
if_icmplt 7
6: StackMap locals: int
StackMap stack:
new org.apache.commons.math3.exception.OutOfRangeException
dup
iload 5
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.n:I
iconst_1
isub
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.apache.commons.math3.exception.OutOfRangeException.<init>:(Ljava/lang/Number;Ljava/lang/Number;Ljava/lang/Number;)V
athrow
7: StackMap locals:
StackMap stack:
lload 2
aload 1
iload 4
iaload
aload 0
getfield org.apache.commons.math3.util.Combinations$LexicographicComparator.n:I
iload 4
invokestatic org.apache.commons.math3.util.ArithmeticUtils.pow:(II)I
imul
i2l
ladd
lstore 2
end local 5 8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 1
arraylength
if_icmplt 3
end local 4 10: lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/math3/util/Combinations$LexicographicComparator;
0 11 1 c [I
1 11 2 ret J
2 10 4 i I
4 8 5 digit I
MethodParameters:
Name Flags
c
public int compare(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast int[]
aload 2
checkcast int[]
invokevirtual org.apache.commons.math3.util.Combinations$LexicographicComparator.compare:([I[I)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<[I>;Ljava/io/Serializable;
SourceFile: "Combinations.java"
NestHost: org.apache.commons.math3.util.Combinations
InnerClasses:
private LexicographicComparator = org.apache.commons.math3.util.Combinations$LexicographicComparator of org.apache.commons.math3.util.Combinations