class org.apache.cassandra.config.DatabaseDescriptor$1 implements java.util.Comparator<java.net.InetAddress>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.config.DatabaseDescriptor$1
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
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/cassandra/config/DatabaseDescriptor$1;
public int compare(java.net.InetAddress, java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;Ljava/net/InetAddress;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.config.DatabaseDescriptor.localDC:Ljava/lang/String;
getstatic org.apache.cassandra.config.DatabaseDescriptor.snitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
istore 3
start local 3 1: getstatic org.apache.cassandra.config.DatabaseDescriptor.localDC:Ljava/lang/String;
getstatic org.apache.cassandra.config.DatabaseDescriptor.snitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 2
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
istore 4
start local 4 2: iload 3
ifeq 4
iload 4
ifne 4
3: iconst_m1
ireturn
4: StackMap locals: int int
StackMap stack:
iload 4
ifeq 6
iload 3
ifne 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/config/DatabaseDescriptor$1;
0 7 1 endpoint1 Ljava/net/InetAddress;
0 7 2 endpoint2 Ljava/net/InetAddress;
1 7 3 local1 Z
2 7 4 local2 Z
MethodParameters:
Name Flags
endpoint1
endpoint2
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.net.InetAddress
aload 2
checkcast java.net.InetAddress
invokevirtual org.apache.cassandra.config.DatabaseDescriptor$1.compare:(Ljava/net/InetAddress;Ljava/net/InetAddress;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<Ljava/net/InetAddress;>;
SourceFile: "DatabaseDescriptor.java"
EnclosingMethod: org.apache.cassandra.config.DatabaseDescriptor.applySnitch:()V
NestHost: org.apache.cassandra.config.DatabaseDescriptor
InnerClasses:
org.apache.cassandra.config.DatabaseDescriptor$1