public class com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder
super_class: java.lang.Object
{
private java.lang.Object[] elements;
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.NullAllowingImmutableSet$Builder.elements:[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/NullAllowingImmutableSet$Builder<TE;>;
0 3 1 expectedSize I
MethodParameters:
Name Flags
expectedSize
public com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder<E> add(E);
descriptor: (Ljava/lang/Object;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.maybeResize:(I)V
1: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
aload 0
dup
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
dup_x1
iconst_1
iadd
putfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
aload 1
aastore
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder<TE;>;
0 3 1 newElement TE;
Signature: (TE;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder<TE;>;
MethodParameters:
Name Flags
newElement
public com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder<E> addAll(java.lang.Iterable<? extends E>);
descriptor: (Ljava/lang/Iterable;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.util.Collection
ifeq 3
1: aload 1
checkcast java.util.Collection
astore 2
start local 2 2: goto 8
end local 2 3: StackMap locals:
StackMap stack:
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 2
start local 2 4: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder java.lang.Iterable java.util.Collection top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 6: aload 2
aload 3
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder java.lang.Iterable java.util.Collection
StackMap stack:
aload 0
aload 2
invokeinterface java.util.Collection.size:()I
invokevirtual com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.maybeResize:(I)V
9: aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder java.lang.Iterable java.util.Collection top java.util.Iterator
StackMap stack:
10: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 11: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
aload 0
dup
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
dup_x1
iconst_1
iadd
putfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
aload 3
aastore
end local 3 12: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder<TE;>;
0 14 1 newElements Ljava/lang/Iterable<+TE;>;
2 3 2 collection Ljava/util/Collection<TE;>;
4 14 2 collection Ljava/util/Collection<TE;>;
6 7 3 newElement TE;
11 12 3 newElement Ljava/lang/Object;
Signature: (Ljava/lang/Iterable<+TE;>;)Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder<TE;>;
MethodParameters:
Name Flags
newElements
public com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet<E> build();
descriptor: ()Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.failIfDuplicates:()V
1: new com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet
dup
2: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
arraylength
if_icmpne 3
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
goto 4
StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder
StackMap stack: new 1 new 1
3: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
iconst_0
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
invokestatic java.util.Arrays.copyOfRange:([Ljava/lang/Object;II)[Ljava/lang/Object;
4: StackMap locals: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder
StackMap stack: new 1 new 1 java.lang.Object[]
invokespecial com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet.<init>:([Ljava/lang/Object;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder<TE;>;
Signature: ()Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet<TE;>;
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.NullAllowingImmutableSet$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.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
arraylength
if_icmple 8
4: aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[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.NullAllowingImmutableSet$Builder.elements:[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.NullAllowingImmutableSet$Builder.elements:[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/NullAllowingImmutableSet$Builder<TE;>;
0 9 1 toAdd I
1 9 2 neededSize I
5 8 3 newLength I
MethodParameters:
Name Flags
toAdd
private void failIfDuplicates();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 10
2: StackMap locals: int
StackMap stack:
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
iload 1
aaload
astore 2
start local 2 3: iload 1
iconst_1
iadd
istore 3
start local 3 4: goto 8
5: StackMap locals: java.lang.Object int
StackMap stack:
aload 2
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.elements:[Ljava/lang/Object;
iload 3
aaload
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 7
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Duplicate element "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
if_icmplt 5
end local 3 end local 2 9: iinc 1 1
StackMap locals:
StackMap stack:
10: iload 1
aload 0
getfield com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder.size:I
if_icmplt 2
end local 1 11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/datastax/oss/protocol/internal/util/collection/NullAllowingImmutableSet$Builder<TE;>;
1 11 1 i I
3 9 2 element Ljava/lang/Object;
4 9 3 j I
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "NullAllowingImmutableSet.java"
NestHost: com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet
InnerClasses:
public Builder = com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet$Builder of com.datastax.oss.protocol.internal.util.collection.NullAllowingImmutableSet