public final class com.google.common.primitives.ImmutableLongArray$Builder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.primitives.ImmutableLongArray$Builder
super_class: java.lang.Object
{
private long[] array;
descriptor: [J
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(int);
descriptor: (I)V
flags: (0x0000)
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 com.google.common.primitives.ImmutableLongArray$Builder.count:I
2: aload 0
iload 1
newarray 11
putfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 4 1 initialCapacity I
MethodParameters:
Name Flags
initialCapacity
public com.google.common.primitives.ImmutableLongArray$Builder add(long);
descriptor: (J)Lcom/google/common/primitives/ImmutableLongArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.ensureRoomFor:(I)V
1: aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
lload 1
lastore
2: aload 0
dup
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
iconst_1
iadd
putfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 4 1 value J
MethodParameters:
Name Flags
value
public com.google.common.primitives.ImmutableLongArray$Builder addAll(long[]);
descriptor: ([J)Lcom/google/common/primitives/ImmutableLongArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
arraylength
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.ensureRoomFor:(I)V
1: aload 1
iconst_0
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
dup
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
aload 1
arraylength
iadd
putfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 4 1 values [J
MethodParameters:
Name Flags
values
public com.google.common.primitives.ImmutableLongArray$Builder addAll(java.lang.Iterable<java.lang.Long>);
descriptor: (Ljava/lang/Iterable;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.util.Collection
ifeq 2
1: aload 0
aload 1
checkcast java.util.Collection
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.addAll:(Ljava/util/Collection;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: com.google.common.primitives.ImmutableLongArray$Builder java.lang.Iterable top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Long
astore 2
start local 2 4: aload 0
aload 2
invokevirtual java.lang.Long.longValue:()J
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.add:(J)Lcom/google/common/primitives/ImmutableLongArray$Builder;
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 7 1 values Ljava/lang/Iterable<Ljava/lang/Long;>;
4 5 2 value Ljava/lang/Long;
Signature: (Ljava/lang/Iterable<Ljava/lang/Long;>;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
MethodParameters:
Name Flags
values
public com.google.common.primitives.ImmutableLongArray$Builder addAll(java.util.Collection<java.lang.Long>);
descriptor: (Ljava/util/Collection;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.util.Collection.size:()I
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.ensureRoomFor:(I)V
1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: com.google.common.primitives.ImmutableLongArray$Builder java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Long
astore 2
start local 2 3: aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
aload 0
dup
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
dup_x1
iconst_1
iadd
putfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
aload 2
invokevirtual java.lang.Long.longValue:()J
lastore
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 6 1 values Ljava/util/Collection<Ljava/lang/Long;>;
3 4 2 value Ljava/lang/Long;
Signature: (Ljava/util/Collection<Ljava/lang/Long;>;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
MethodParameters:
Name Flags
values
public com.google.common.primitives.ImmutableLongArray$Builder addAll(java.util.stream.LongStream);
descriptor: (Ljava/util/stream/LongStream;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.stream.LongStream.spliterator:()Ljava/util/Spliterator$OfLong;
astore 2
start local 2 1: aload 2
invokeinterface java.util.Spliterator$OfLong.getExactSizeIfKnown:()J
lstore 3
start local 3 2: lload 3
lconst_0
lcmp
ifle 4
3: aload 0
lload 3
invokestatic com.google.common.primitives.Ints.saturatedCast:(J)I
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.ensureRoomFor:(I)V
4: StackMap locals: java.util.Spliterator$OfLong long
StackMap stack:
aload 2
aload 0
invokedynamic accept(Lcom/google/common/primitives/ImmutableLongArray$Builder;)Ljava/util/function/LongConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(J)V
com/google/common/primitives/ImmutableLongArray$Builder.add(J)Lcom/google/common/primitives/ImmutableLongArray$Builder; (5)
(J)V
invokeinterface java.util.Spliterator$OfLong.forEachRemaining:(Ljava/util/function/LongConsumer;)V
5: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 6 1 stream Ljava/util/stream/LongStream;
1 6 2 spliterator Ljava/util/Spliterator$OfLong;
2 6 3 size J
MethodParameters:
Name Flags
stream
public com.google.common.primitives.ImmutableLongArray$Builder addAll(com.google.common.primitives.ImmutableLongArray);
descriptor: (Lcom/google/common/primitives/ImmutableLongArray;)Lcom/google/common/primitives/ImmutableLongArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.google.common.primitives.ImmutableLongArray.length:()I
invokevirtual com.google.common.primitives.ImmutableLongArray$Builder.ensureRoomFor:(I)V
1: aload 1
getfield com.google.common.primitives.ImmutableLongArray.array:[J
aload 1
getfield com.google.common.primitives.ImmutableLongArray.start:I
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
aload 1
invokevirtual com.google.common.primitives.ImmutableLongArray.length:()I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
dup
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
aload 1
invokevirtual com.google.common.primitives.ImmutableLongArray.length:()I
iadd
putfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 4 1 values Lcom/google/common/primitives/ImmutableLongArray;
MethodParameters:
Name Flags
values
private void ensureRoomFor(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
iload 1
iadd
istore 2
start local 2 1: iload 2
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
arraylength
if_icmple 5
2: aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
arraylength
iload 2
invokestatic com.google.common.primitives.ImmutableLongArray$Builder.expandedCapacity:(II)I
newarray 11
astore 3
start local 3 3: aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
iconst_0
aload 3
iconst_0
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 3
putfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
end local 3 5: StackMap locals: int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
0 6 1 numberToAdd I
1 6 2 newCount I
3 5 3 newArray [J
MethodParameters:
Name Flags
numberToAdd
private static int expandedCapacity(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.AssertionError
dup
ldc "cannot store more than MAX_VALUE elements"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
iload 0
iconst_1
ishr
iadd
iconst_1
iadd
istore 2
start local 2 3: iload 2
iload 1
if_icmpge 5
4: iload 1
iconst_1
isub
invokestatic java.lang.Integer.highestOneBit:(I)I
iconst_1
ishl
istore 2
5: StackMap locals: int
StackMap stack:
iload 2
ifge 7
6: ldc 2147483647
istore 2
7: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 oldCapacity I
0 8 1 minCapacity I
3 8 2 newCapacity I
MethodParameters:
Name Flags
oldCapacity
minCapacity
public com.google.common.primitives.ImmutableLongArray build();
descriptor: ()Lcom/google/common/primitives/ImmutableLongArray;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
ifne 1
getstatic com.google.common.primitives.ImmutableLongArray.EMPTY:Lcom/google/common/primitives/ImmutableLongArray;
goto 2
StackMap locals:
StackMap stack:
1: new com.google.common.primitives.ImmutableLongArray
dup
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.array:[J
iconst_0
aload 0
getfield com.google.common.primitives.ImmutableLongArray$Builder.count:I
invokespecial com.google.common.primitives.ImmutableLongArray.<init>:([JII)V
StackMap locals:
StackMap stack: com.google.common.primitives.ImmutableLongArray
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/primitives/ImmutableLongArray$Builder;
RuntimeVisibleAnnotations:
com.google.errorprone.annotations.CheckReturnValue()
}
SourceFile: "ImmutableLongArray.java"
NestHost: com.google.common.primitives.ImmutableLongArray
InnerClasses:
public final Builder = com.google.common.primitives.ImmutableLongArray$Builder of com.google.common.primitives.ImmutableLongArray
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract OfLong = java.util.Spliterator$OfLong of java.util.Spliterator
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()