public class org.apache.commons.collections4.comparators.ComparatorChain<E> implements java.util.Comparator<E>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.comparators.ComparatorChain
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -721644942746081630
private final java.util.List<java.util.Comparator<E>> comparatorChain;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/util/Comparator<TE;>;>;
private java.util.BitSet orderingBits;
descriptor: Ljava/util/BitSet;
flags: (0x0002) ACC_PRIVATE
private boolean isLocked;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
new java.util.BitSet
dup
invokespecial java.util.BitSet.<init>:()V
invokespecial org.apache.commons.collections4.comparators.ComparatorChain.<init>:(Ljava/util/List;Ljava/util/BitSet;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
public void <init>(java.util.Comparator<E>);
descriptor: (Ljava/util/Comparator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial org.apache.commons.collections4.comparators.ComparatorChain.<init>:(Ljava/util/Comparator;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 2 1 comparator Ljava/util/Comparator<TE;>;
Signature: (Ljava/util/Comparator<TE;>;)V
MethodParameters:
Name Flags
comparator final
public void <init>(java.util.Comparator<E>, );
descriptor: (Ljava/util/Comparator;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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
aconst_null
putfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
2: aload 0
iconst_0
putfield org.apache.commons.collections4.comparators.ComparatorChain.isLocked:Z
3: aload 0
new java.util.ArrayList
dup
iconst_1
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
4: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 0
new java.util.BitSet
dup
iconst_1
invokespecial java.util.BitSet.<init>:(I)V
putfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
6: iload 2
ifeq 8
7: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
iconst_0
invokevirtual java.util.BitSet.set:(I)V
8: StackMap locals: org.apache.commons.collections4.comparators.ComparatorChain java.util.Comparator int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 9 1 comparator Ljava/util/Comparator<TE;>;
0 9 2 reverse Z
Signature: (Ljava/util/Comparator<TE;>;Z)V
MethodParameters:
Name Flags
comparator final
reverse final
public void <init>(java.util.List<java.util.Comparator<E>>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new java.util.BitSet
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.BitSet.<init>:(I)V
invokespecial org.apache.commons.collections4.comparators.ComparatorChain.<init>:(Ljava/util/List;Ljava/util/BitSet;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 2 1 list Ljava/util/List<Ljava/util/Comparator<TE;>;>;
Signature: (Ljava/util/List<Ljava/util/Comparator<TE;>;>;)V
MethodParameters:
Name Flags
list final
public void <init>(java.util.List<java.util.Comparator<E>>, java.util.BitSet);
descriptor: (Ljava/util/List;Ljava/util/BitSet;)V
flags: (0x0001) ACC_PUBLIC
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
aconst_null
putfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
2: aload 0
iconst_0
putfield org.apache.commons.collections4.comparators.ComparatorChain.isLocked:Z
3: aload 0
aload 1
putfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
4: aload 0
aload 2
putfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 6 1 list Ljava/util/List<Ljava/util/Comparator<TE;>;>;
0 6 2 bits Ljava/util/BitSet;
Signature: (Ljava/util/List<Ljava/util/Comparator<TE;>;>;Ljava/util/BitSet;)V
MethodParameters:
Name Flags
list final
bits final
public void addComparator(java.util.Comparator<E>);
descriptor: (Ljava/util/Comparator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.addComparator:(Ljava/util/Comparator;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 2 1 comparator Ljava/util/Comparator<TE;>;
Signature: (Ljava/util/Comparator<TE;>;)V
MethodParameters:
Name Flags
comparator final
public void addComparator(java.util.Comparator<E>, );
descriptor: (Ljava/util/Comparator;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.checkLocked:()V
1: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: iload 2
ifeq 4
3: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
invokevirtual java.util.BitSet.set:(I)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 5 1 comparator Ljava/util/Comparator<TE;>;
0 5 2 reverse Z
Signature: (Ljava/util/Comparator<TE;>;Z)V
MethodParameters:
Name Flags
comparator final
reverse final
public void setComparator(int, java.util.Comparator<E>);
descriptor: (ILjava/util/Comparator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
iconst_0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.setComparator:(ILjava/util/Comparator;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 2 1 index I
0 2 2 comparator Ljava/util/Comparator<TE;>;
Exceptions:
throws java.lang.IndexOutOfBoundsException
Signature: (ILjava/util/Comparator<TE;>;)V
MethodParameters:
Name Flags
index final
comparator final
public void setComparator(int, java.util.Comparator<E>, );
descriptor: (ILjava/util/Comparator;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.checkLocked:()V
1: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
iload 1
aload 2
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
2: iload 3
ifeq 5
3: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.set:(I)V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.clear:(I)V
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 7 1 index I
0 7 2 comparator Ljava/util/Comparator<TE;>;
0 7 3 reverse Z
Signature: (ILjava/util/Comparator<TE;>;Z)V
MethodParameters:
Name Flags
index final
comparator final
reverse final
public void setForwardSort(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.checkLocked:()V
1: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.clear:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 3 1 index I
MethodParameters:
Name Flags
index final
public void setReverseSort(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.checkLocked:()V
1: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.set:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 3 1 index I
MethodParameters:
Name Flags
index final
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
public boolean isLocked();
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.comparators.ComparatorChain.isLocked:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
private void checkLocked();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.isLocked:Z
ifeq 4
1: new java.lang.UnsupportedOperationException
dup
2: ldc "Comparator ordering cannot be changed after the first comparison is performed"
3: invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
private void checkChainIntegrity();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifne 2
1: new java.lang.UnsupportedOperationException
dup
ldc "ComparatorChains must contain at least one Comparator"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
public int compare(E, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.isLocked:Z
ifne 3
1: aload 0
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.checkChainIntegrity:()V
2: aload 0
iconst_1
putfield org.apache.commons.collections4.comparators.ComparatorChain.isLocked:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 16
6: StackMap locals: java.util.Iterator int
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Comparator
astore 5
start local 5 7: aload 5
aload 1
aload 2
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
istore 6
start local 6 8: iload 6
ifeq 15
9: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
iload 4
invokevirtual java.util.BitSet.get:(I)Z
ifeq 14
10: iload 6
ifle 13
11: iconst_m1
istore 6
12: goto 14
13: StackMap locals: java.util.Comparator int
StackMap stack:
iconst_1
istore 6
14: StackMap locals:
StackMap stack:
iload 6
ireturn
end local 6 end local 5 15: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
16: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 4 17: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 18 1 o1 TE;
0 18 2 o2 TE;
4 18 3 comparators Ljava/util/Iterator<Ljava/util/Comparator<TE;>;>;
5 17 4 comparatorIndex I
7 15 5 comparator Ljava/util/Comparator<-TE;>;
8 15 6 retval I
Exceptions:
throws java.lang.UnsupportedOperationException
Signature: (TE;TE;)I
MethodParameters:
Name Flags
o1 final
o2 final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
ifnull 3
2: iload 1
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
invokeinterface java.util.List.hashCode:()I
ixor
istore 1
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
ifnull 5
4: iload 1
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
invokevirtual java.util.BitSet.hashCode:()I
ixor
istore 1
5: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
1 6 1 hash I
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 12
5: aload 1
checkcast org.apache.commons.collections4.comparators.ComparatorChain
astore 2
start local 2 6: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
ifnonnull 7
aload 2
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
ifnonnull 11
goto 8
StackMap locals: org.apache.commons.collections4.comparators.ComparatorChain
StackMap stack:
7: aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
aload 2
getfield org.apache.commons.collections4.comparators.ComparatorChain.orderingBits:Ljava/util/BitSet;
invokevirtual java.util.BitSet.equals:(Ljava/lang/Object;)Z
ifeq 11
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
ifnonnull 9
aload 2
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
ifnonnull 11
goto 10
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
aload 2
getfield org.apache.commons.collections4.comparators.ComparatorChain.comparatorChain:Ljava/util/List;
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ifeq 11
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
11: iconst_0
ireturn
end local 2 12: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
0 13 1 object Ljava/lang/Object;
6 12 2 chain Lorg/apache/commons/collections4/comparators/ComparatorChain<*>;
MethodParameters:
Name Flags
object final
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Comparator<TE;>;Ljava/io/Serializable;
SourceFile: "ComparatorChain.java"