public final class com.mongodb.connection.ConnectionId
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.connection.ConnectionId
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicInteger INCREMENTING_ID;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final com.mongodb.connection.ServerId serverId;
descriptor: Lcom/mongodb/connection/ServerId;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int localValue;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Integer serverValue;
descriptor: Ljava/lang/Integer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String stringValue;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putstatic com.mongodb.connection.ConnectionId.INCREMENTING_ID:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(com.mongodb.connection.ServerId);
descriptor: (Lcom/mongodb/connection/ServerId;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic com.mongodb.connection.ConnectionId.INCREMENTING_ID:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
aconst_null
invokespecial com.mongodb.connection.ConnectionId.<init>:(Lcom/mongodb/connection/ServerId;ILjava/lang/Integer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/connection/ConnectionId;
0 2 1 serverId Lcom/mongodb/connection/ServerId;
MethodParameters:
Name Flags
serverId final
public void <init>(com.mongodb.connection.ServerId, int, java.lang.Integer);
descriptor: (Lcom/mongodb/connection/ServerId;ILjava/lang/Integer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "serverId"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.connection.ServerId
putfield com.mongodb.connection.ConnectionId.serverId:Lcom/mongodb/connection/ServerId;
2: aload 0
iload 2
putfield com.mongodb.connection.ConnectionId.localValue:I
3: aload 0
aload 3
putfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
4: aload 3
ifnonnull 7
5: aload 0
ldc "connectionId{localValue:%s}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
putfield com.mongodb.connection.ConnectionId.stringValue:Ljava/lang/String;
6: goto 8
7: StackMap locals: com.mongodb.connection.ConnectionId com.mongodb.connection.ServerId int java.lang.Integer
StackMap stack:
aload 0
ldc "connectionId{localValue:%s, serverValue:%s}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 3
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
putfield com.mongodb.connection.ConnectionId.stringValue:Ljava/lang/String;
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/connection/ConnectionId;
0 9 1 serverId Lcom/mongodb/connection/ServerId;
0 9 2 localValue I
0 9 3 serverValue Ljava/lang/Integer;
MethodParameters:
Name Flags
serverId final
localValue final
serverValue final
public com.mongodb.connection.ConnectionId withServerValue(int);
descriptor: (I)Lcom/mongodb/connection/ConnectionId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: ldc "server value is null"
aload 0
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
ifnonnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack: java.lang.String
1: iconst_0
StackMap locals: com.mongodb.connection.ConnectionId int
StackMap stack: java.lang.String int
2: invokestatic com.mongodb.assertions.Assertions.isTrue:(Ljava/lang/String;Z)V
3: new com.mongodb.connection.ConnectionId
dup
aload 0
getfield com.mongodb.connection.ConnectionId.serverId:Lcom/mongodb/connection/ServerId;
aload 0
getfield com.mongodb.connection.ConnectionId.localValue:I
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial com.mongodb.connection.ConnectionId.<init>:(Lcom/mongodb/connection/ServerId;ILjava/lang/Integer;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/connection/ConnectionId;
0 4 1 serverValue I
MethodParameters:
Name Flags
serverValue final
public com.mongodb.connection.ServerId getServerId();
descriptor: ()Lcom/mongodb/connection/ServerId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ConnectionId.serverId:Lcom/mongodb/connection/ServerId;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ConnectionId;
public int getLocalValue();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ConnectionId.localValue:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ConnectionId;
public java.lang.Integer getServerValue();
descriptor: ()Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ConnectionId;
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
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.connection.ConnectionId
astore 2
start local 2 5: aload 0
getfield com.mongodb.connection.ConnectionId.localValue:I
aload 2
getfield com.mongodb.connection.ConnectionId.localValue:I
if_icmpeq 7
6: iconst_0
ireturn
7: StackMap locals: com.mongodb.connection.ConnectionId
StackMap stack:
aload 0
getfield com.mongodb.connection.ConnectionId.serverId:Lcom/mongodb/connection/ServerId;
aload 2
getfield com.mongodb.connection.ConnectionId.serverId:Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.connection.ServerId.equals:(Ljava/lang/Object;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
ifnull 10
aload 0
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
aload 2
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
invokevirtual java.lang.Integer.equals:(Ljava/lang/Object;)Z
ifne 12
goto 11
StackMap locals:
StackMap stack:
10: aload 2
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
ifnull 12
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
12: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/mongodb/connection/ConnectionId;
0 13 1 o Ljava/lang/Object;
5 13 2 that Lcom/mongodb/connection/ConnectionId;
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ConnectionId.serverId:Lcom/mongodb/connection/ServerId;
invokevirtual com.mongodb.connection.ServerId.hashCode:()I
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.connection.ConnectionId.localValue:I
iadd
istore 1
2: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
ifnull 3
aload 0
getfield com.mongodb.connection.ConnectionId.serverValue:Ljava/lang/Integer;
invokevirtual java.lang.Integer.hashCode:()I
goto 4
StackMap locals: com.mongodb.connection.ConnectionId int
StackMap stack: int
3: iconst_0
StackMap locals: com.mongodb.connection.ConnectionId int
StackMap stack: int int
4: iadd
istore 1
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ConnectionId;
1 6 1 result I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.ConnectionId.stringValue:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ConnectionId;
}
SourceFile: "ConnectionId.java"
RuntimeVisibleAnnotations:
com.mongodb.annotations.Immutable()