public class org.apache.commons.collections4.comparators.NullComparator<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.NullComparator
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -5820772575483504339
private final java.util.Comparator<? super E> nonNullComparator;
descriptor: Ljava/util/Comparator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Comparator<-TE;>;
private final boolean nullsAreHigh;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
iconst_1
invokespecial org.apache.commons.collections4.comparators.NullComparator.<init>:(Ljava/util/Comparator;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/NullComparator<TE;>;
public void <init>(java.util.Comparator<? super 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_1
invokespecial org.apache.commons.collections4.comparators.NullComparator.<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/NullComparator<TE;>;
0 2 1 nonNullComparator Ljava/util/Comparator<-TE;>;
Signature: (Ljava/util/Comparator<-TE;>;)V
MethodParameters:
Name Flags
nonNullComparator final
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic org.apache.commons.collections4.ComparatorUtils.NATURAL_COMPARATOR:Ljava/util/Comparator;
iload 1
invokespecial org.apache.commons.collections4.comparators.NullComparator.<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/NullComparator<TE;>;
0 2 1 nullsAreHigh Z
MethodParameters:
Name Flags
nullsAreHigh final
public void <init>(java.util.Comparator<? super 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
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.commons.collections4.comparators.NullComparator.nonNullComparator:Ljava/util/Comparator;
2: aload 0
iload 2
putfield org.apache.commons.collections4.comparators.NullComparator.nullsAreHigh:Z
3: aload 1
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "null nonNullComparator"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: org.apache.commons.collections4.comparators.NullComparator java.util.Comparator int
StackMap stack:
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/NullComparator<TE;>;
0 6 1 nonNullComparator Ljava/util/Comparator<-TE;>;
0 6 2 nullsAreHigh Z
Signature: (Ljava/util/Comparator<-TE;>;Z)V
MethodParameters:
Name Flags
nonNullComparator final
nullsAreHigh final
public int compare(E, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
if_acmpne 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nullsAreHigh:Z
ifeq 2
iconst_1
goto 3
StackMap locals:
StackMap stack:
2: iconst_m1
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
aload 2
ifnonnull 7
aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nullsAreHigh:Z
ifeq 5
iconst_m1
goto 6
StackMap locals:
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nonNullComparator:Ljava/util/Comparator;
aload 1
aload 2
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/collections4/comparators/NullComparator<TE;>;
0 8 1 o1 TE;
0 8 2 o2 TE;
Signature: (TE;TE;)I
MethodParameters:
Name Flags
o1 final
o2 final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nullsAreHigh:Z
ifeq 1
iconst_m1
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nonNullComparator:Ljava/util/Comparator;
invokevirtual java.lang.Object.hashCode:()I
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/comparators/NullComparator<TE;>;
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 1
ifnonnull 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 1
aload 0
if_acmpne 2
iconst_1
ireturn
2: 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
ifne 3
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.commons.collections4.comparators.NullComparator
astore 2
start local 2 4: aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nullsAreHigh:Z
aload 2
getfield org.apache.commons.collections4.comparators.NullComparator.nullsAreHigh:Z
if_icmpne 7
5: aload 0
getfield org.apache.commons.collections4.comparators.NullComparator.nonNullComparator:Ljava/util/Comparator;
aload 2
getfield org.apache.commons.collections4.comparators.NullComparator.nonNullComparator:Ljava/util/Comparator;
invokeinterface java.util.Comparator.equals:(Ljava/lang/Object;)Z
ifeq 7
6: iconst_1
ireturn
StackMap locals: org.apache.commons.collections4.comparators.NullComparator
StackMap stack:
7: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/collections4/comparators/NullComparator<TE;>;
0 8 1 obj Ljava/lang/Object;
4 8 2 other Lorg/apache/commons/collections4/comparators/NullComparator<*>;
MethodParameters:
Name Flags
obj final
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Comparator<TE;>;Ljava/io/Serializable;
SourceFile: "NullComparator.java"