public final class org.apache.commons.collections4.comparators.BooleanComparator implements java.util.Comparator<java.lang.Boolean>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.commons.collections4.comparators.BooleanComparator
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1830042991606340609
private static final org.apache.commons.collections4.comparators.BooleanComparator TRUE_FIRST;
descriptor: Lorg/apache/commons/collections4/comparators/BooleanComparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.commons.collections4.comparators.BooleanComparator FALSE_FIRST;
descriptor: Lorg/apache/commons/collections4/comparators/BooleanComparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean trueFirst;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.apache.commons.collections4.comparators.BooleanComparator
dup
iconst_1
invokespecial org.apache.commons.collections4.comparators.BooleanComparator.<init>:(Z)V
putstatic org.apache.commons.collections4.comparators.BooleanComparator.TRUE_FIRST:Lorg/apache/commons/collections4/comparators/BooleanComparator;
1: new org.apache.commons.collections4.comparators.BooleanComparator
dup
iconst_0
invokespecial org.apache.commons.collections4.comparators.BooleanComparator.<init>:(Z)V
putstatic org.apache.commons.collections4.comparators.BooleanComparator.FALSE_FIRST:Lorg/apache/commons/collections4/comparators/BooleanComparator;
return
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.commons.collections4.comparators.BooleanComparator getTrueFirstComparator();
descriptor: ()Lorg/apache/commons/collections4/comparators/BooleanComparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.commons.collections4.comparators.BooleanComparator.TRUE_FIRST:Lorg/apache/commons/collections4/comparators/BooleanComparator;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.commons.collections4.comparators.BooleanComparator getFalseFirstComparator();
descriptor: ()Lorg/apache/commons/collections4/comparators/BooleanComparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.commons.collections4.comparators.BooleanComparator.FALSE_FIRST:Lorg/apache/commons/collections4/comparators/BooleanComparator;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.commons.collections4.comparators.BooleanComparator booleanComparator(boolean);
descriptor: (Z)Lorg/apache/commons/collections4/comparators/BooleanComparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
ifeq 1
getstatic org.apache.commons.collections4.comparators.BooleanComparator.TRUE_FIRST:Lorg/apache/commons/collections4/comparators/BooleanComparator;
goto 2
StackMap locals:
StackMap stack:
1: getstatic org.apache.commons.collections4.comparators.BooleanComparator.FALSE_FIRST:Lorg/apache/commons/collections4/comparators/BooleanComparator;
StackMap locals:
StackMap stack: org.apache.commons.collections4.comparators.BooleanComparator
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 trueFirst Z
MethodParameters:
Name Flags
trueFirst final
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokespecial org.apache.commons.collections4.comparators.BooleanComparator.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/comparators/BooleanComparator;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.commons.collections4.comparators.BooleanComparator.trueFirst:Z
2: aload 0
iload 1
putfield org.apache.commons.collections4.comparators.BooleanComparator.trueFirst:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/comparators/BooleanComparator;
0 4 1 trueFirst Z
MethodParameters:
Name Flags
trueFirst final
public int compare(java.lang.Boolean, java.lang.Boolean);
descriptor: (Ljava/lang/Boolean;Ljava/lang/Boolean;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 3
start local 3 1: aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 4
start local 4 2: iload 3
iload 4
ixor
ifeq 4
iload 3
aload 0
getfield org.apache.commons.collections4.comparators.BooleanComparator.trueFirst:Z
ixor
ifeq 3
iconst_1
goto 5
StackMap locals: int int
StackMap stack:
3: iconst_m1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/comparators/BooleanComparator;
0 6 1 b1 Ljava/lang/Boolean;
0 6 2 b2 Ljava/lang/Boolean;
1 6 3 v1 Z
2 6 4 v2 Z
MethodParameters:
Name Flags
b1 final
b2 final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "BooleanComparator"
invokevirtual java.lang.String.hashCode:()I
istore 1
start local 1 1: aload 0
getfield org.apache.commons.collections4.comparators.BooleanComparator.trueFirst:Z
ifeq 2
iconst_m1
iload 1
imul
goto 3
StackMap locals: int
StackMap stack:
2: iload 1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/comparators/BooleanComparator;
1 4 1 hash I
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpeq 4
1: aload 1
instanceof org.apache.commons.collections4.comparators.BooleanComparator
ifeq 3
2: aload 0
getfield org.apache.commons.collections4.comparators.BooleanComparator.trueFirst:Z
aload 1
checkcast org.apache.commons.collections4.comparators.BooleanComparator
getfield org.apache.commons.collections4.comparators.BooleanComparator.trueFirst:Z
if_icmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/comparators/BooleanComparator;
0 5 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object final
public boolean sortsTrueFirst();
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.BooleanComparator.trueFirst:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/comparators/BooleanComparator;
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 java.lang.Boolean
aload 2
checkcast java.lang.Boolean
invokevirtual org.apache.commons.collections4.comparators.BooleanComparator.compare:(Ljava/lang/Boolean;Ljava/lang/Boolean;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<Ljava/lang/Boolean;>;Ljava/io/Serializable;
SourceFile: "BooleanComparator.java"