public class org.apache.commons.collections4.ComparatorUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.ComparatorUtils
super_class: java.lang.Object
{
public static final java.util.Comparator NATURAL_COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.apache.commons.collections4.comparators.ComparableComparator.comparableComparator:()Lorg/apache/commons/collections4/comparators/ComparableComparator;
putstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/ComparatorUtils;
public static <E extends java.lang.Comparable<? super E>> java.util.Comparator<E> naturalComparator();
descriptor: ()Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <E::Ljava/lang/Comparable<-TE;>;>()Ljava/util/Comparator<TE;>;
public static <E> java.util.Comparator<E> chainedComparator(java.util.Comparator<E>[]);
descriptor: ([Ljava/util/Comparator;)Ljava/util/Comparator;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=1
start local 0 0: new org.apache.commons.collections4.comparators.ComparatorChain
dup
invokespecial org.apache.commons.collections4.comparators.ComparatorChain.<init>:()V
astore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.util.Comparator[] org.apache.commons.collections4.comparators.ComparatorChain top int int java.util.Comparator[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "Comparator cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.util.Comparator[] org.apache.commons.collections4.comparators.ComparatorChain java.util.Comparator int int java.util.Comparator[]
StackMap stack:
aload 1
aload 2
invokevirtual org.apache.commons.collections4.comparators.ComparatorChain.addComparator:(Ljava/util/Comparator;)V
end local 2 6: iinc 3 1
StackMap locals: java.util.Comparator[] org.apache.commons.collections4.comparators.ComparatorChain top int int java.util.Comparator[]
StackMap stack:
7: iload 3
iload 4
if_icmplt 2
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 comparators [Ljava/util/Comparator;
1 9 1 chain Lorg/apache/commons/collections4/comparators/ComparatorChain<TE;>;
3 6 2 comparator Ljava/util/Comparator<TE;>;
Signature: <E:Ljava/lang/Object;>([Ljava/util/Comparator<TE;>;)Ljava/util/Comparator<TE;>;
MethodParameters:
Name Flags
comparators final
public static <E> java.util.Comparator<E> chainedComparator(java.util.Collection<java.util.Comparator<E>>);
descriptor: (Ljava/util/Collection;)Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokeinterface java.util.Collection.size:()I
anewarray java.util.Comparator
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.util.Comparator[]
1: invokestatic org.apache.commons.collections4.ComparatorUtils.chainedComparator:([Ljava/util/Comparator;)Ljava/util/Comparator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 comparators Ljava/util/Collection<Ljava/util/Comparator<TE;>;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Collection<Ljava/util/Comparator<TE;>;>;)Ljava/util/Comparator<TE;>;
MethodParameters:
Name Flags
comparators final
public static <E> java.util.Comparator<E> reversedComparator(java.util.Comparator<E>);
descriptor: (Ljava/util/Comparator;)Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.commons.collections4.comparators.ReverseComparator
dup
aload 0
invokespecial org.apache.commons.collections4.comparators.ReverseComparator.<init>:(Ljava/util/Comparator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 comparator Ljava/util/Comparator<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Comparator<TE;>;)Ljava/util/Comparator<TE;>;
MethodParameters:
Name Flags
comparator final
public static java.util.Comparator<java.lang.Boolean> booleanComparator(boolean);
descriptor: (Z)Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic org.apache.commons.collections4.comparators.BooleanComparator.booleanComparator:(Z)Lorg/apache/commons/collections4/comparators/BooleanComparator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 trueFirst Z
Signature: (Z)Ljava/util/Comparator<Ljava/lang/Boolean;>;
MethodParameters:
Name Flags
trueFirst final
public static <E> java.util.Comparator<E> nullLowComparator(java.util.Comparator<E>);
descriptor: (Ljava/util/Comparator;)Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
astore 0
2: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.comparators.NullComparator
dup
aload 0
iconst_0
invokespecial org.apache.commons.collections4.comparators.NullComparator.<init>:(Ljava/util/Comparator;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 comparator Ljava/util/Comparator<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Comparator<TE;>;)Ljava/util/Comparator<TE;>;
MethodParameters:
Name Flags
comparator
public static <E> java.util.Comparator<E> nullHighComparator(java.util.Comparator<E>);
descriptor: (Ljava/util/Comparator;)Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
astore 0
2: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.comparators.NullComparator
dup
aload 0
iconst_1
invokespecial org.apache.commons.collections4.comparators.NullComparator.<init>:(Ljava/util/Comparator;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 comparator Ljava/util/Comparator<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Comparator<TE;>;)Ljava/util/Comparator<TE;>;
MethodParameters:
Name Flags
comparator
public static <I, O> java.util.Comparator<I> transformedComparator(java.util.Comparator<O>, org.apache.commons.collections4.Transformer<? super I, ? extends O>);
descriptor: (Ljava/util/Comparator;Lorg/apache/commons/collections4/Transformer;)Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
astore 0
2: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.comparators.TransformingComparator
dup
aload 1
aload 0
invokespecial org.apache.commons.collections4.comparators.TransformingComparator.<init>:(Lorg/apache/commons/collections4/Transformer;Ljava/util/Comparator;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 comparator Ljava/util/Comparator<TO;>;
0 3 1 transformer Lorg/apache/commons/collections4/Transformer<-TI;+TO;>;
Signature: <I:Ljava/lang/Object;O:Ljava/lang/Object;>(Ljava/util/Comparator<TO;>;Lorg/apache/commons/collections4/Transformer<-TI;+TO;>;)Ljava/util/Comparator<TI;>;
MethodParameters:
Name Flags
comparator
transformer final
public static <E> E min(E, E, java.util.Comparator<E>);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
astore 2
2: StackMap locals:
StackMap stack:
aload 2
aload 0
aload 1
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
istore 3
start local 3 3: iload 3
ifge 4
aload 0
goto 5
StackMap locals: int
StackMap stack:
4: aload 1
StackMap locals:
StackMap stack: java.lang.Object
5: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 o1 TE;
0 6 1 o2 TE;
0 6 2 comparator Ljava/util/Comparator<TE;>;
3 6 3 c I
Signature: <E:Ljava/lang/Object;>(TE;TE;Ljava/util/Comparator<TE;>;)TE;
MethodParameters:
Name Flags
o1 final
o2 final
comparator
public static <E> E max(E, E, java.util.Comparator<E>);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
astore 2
2: StackMap locals:
StackMap stack:
aload 2
aload 0
aload 1
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
istore 3
start local 3 3: iload 3
ifle 4
aload 0
goto 5
StackMap locals: int
StackMap stack:
4: aload 1
StackMap locals:
StackMap stack: java.lang.Object
5: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 o1 TE;
0 6 1 o2 TE;
0 6 2 comparator Ljava/util/Comparator<TE;>;
3 6 3 c I
Signature: <E:Ljava/lang/Object;>(TE;TE;Ljava/util/Comparator<TE;>;)TE;
MethodParameters:
Name Flags
o1 final
o2 final
comparator
}
SourceFile: "ComparatorUtils.java"