public class com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder<K, V>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder
super_class: java.lang.Object
{
private java.lang.Object[] entries;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(int);
descriptor: (I)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
iload 1
anewarray java.lang.Object
putfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
0 3 1 expectedSize I
MethodParameters:
Name Flags
expectedSize
public com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder<K, V> put(K, V);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
invokevirtual com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.maybeResize:(I)V
1: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
aload 0
dup
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
dup_x1
iconst_1
iadd
putfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 1
aload 2
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
aastore
2: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
0 3 1 key TK;
0 3 2 value TV;
Signature: (TK;TV;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
MethodParameters:
Name Flags
key
value
public com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder<K, V> putAll(java.util.Map<? extends K, ? extends V>);
descriptor: (Ljava/util/Map;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.util.Map.size:()I
invokevirtual com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.maybeResize:(I)V
1: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 2
instanceof java.util.AbstractMap$SimpleImmutableEntry
ifeq 5
4: aload 2
checkcast java.util.AbstractMap$SimpleImmutableEntry
goto 6
5: StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder java.util.Map java.util.Map$Entry java.util.Iterator
StackMap stack:
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack: java.util.AbstractMap$SimpleImmutableEntry
astore 4
start local 4 7: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
aload 0
dup
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
dup_x1
iconst_1
iadd
putfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
aload 4
aastore
end local 4 end local 2 8: StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder java.util.Map top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
0 10 1 newEntries Ljava/util/Map<+TK;+TV;>;
3 8 2 entry Ljava/util/Map$Entry<+TK;+TV;>;
7 8 4 immutableEntry Ljava/lang/Object;
Signature: (Ljava/util/Map<+TK;+TV;>;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
MethodParameters:
Name Flags
newEntries
public java.util.Map<K, V> build();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.failIfDuplicateKeys:()V
1: new com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap
dup
2: new com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet
dup
3: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
arraylength
if_icmpne 4
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
goto 5
StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder
StackMap stack: new 1 new 1 new 2 new 2
4: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
iconst_0
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
invokestatic java.util.Arrays.copyOfRange:([Ljava/lang/Object;II)[Ljava/lang/Object;
5: StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder
StackMap stack: new 1 new 1 new 2 new 2 java.lang.Object[]
invokespecial com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet.<init>:([Ljava/lang/Object;)V
6: invokespecial com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap.<init>:(Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
Signature: ()Ljava/util/Map<TK;TV;>;
private void maybeResize(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
iload 1
iadd
istore 2
start local 2 1: iload 2
ifge 3
2: new java.lang.OutOfMemoryError
dup
invokespecial java.lang.OutOfMemoryError.<init>:()V
athrow
3: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
arraylength
if_icmple 8
4: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
arraylength
iconst_2
imul
istore 3
start local 3 5: iload 3
ifge 7
6: iload 2
istore 3
7: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
iload 3
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
putfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
end local 3 8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
0 9 1 toAdd I
1 9 2 neededSize I
5 8 3 newLength I
MethodParameters:
Name Flags
toAdd
private void failIfDuplicateKeys();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 11
2: StackMap locals: int
StackMap stack:
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
iload 1
aaload
checkcast java.util.Map$Entry
astore 2
start local 2 3: iload 1
iconst_1
iadd
istore 3
start local 3 4: goto 9
5: StackMap locals: java.util.Map$Entry int
StackMap stack:
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.entries:[Ljava/lang/Object;
iload 3
aaload
checkcast java.util.Map$Entry
astore 4
start local 4 6: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 8
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Duplicate key "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
if_icmplt 5
end local 3 end local 2 10: iinc 1 1
StackMap locals:
StackMap stack:
11: iload 1
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder.size:I
if_icmplt 2
end local 1 12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableMap$Builder<TK;TV;>;
1 12 1 i I
3 10 2 entry1 Ljava/util/Map$Entry<TK;TV;>;
4 10 3 j I
6 8 4 entry2 Ljava/util/Map$Entry<TK;TV;>;
}
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "NullAllowingImmutableMap.java"
NestHost: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap
InnerClasses:
public Builder = com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap$Builder of com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableMap
public SimpleImmutableEntry = java.util.AbstractMap$SimpleImmutableEntry of java.util.AbstractMap
public abstract Entry = java.util.Map$Entry of java.util.Map