public final class com.google.common.primitives.ImmutableIntArray$Builder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.primitives.ImmutableIntArray$Builder
super_class: java.lang.Object
{
private int[] array;
descriptor: [I
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.ImmutableIntArray$Builder.count:I
2: aload 0
iload 1
newarray 10
putfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/primitives/ImmutableIntArray$Builder;
0 4 1 initialCapacity I
MethodParameters:
Name Flags
initialCapacity
public com.google.common.primitives.ImmutableIntArray$Builder add(int);
descriptor: (I)Lcom/google/common/primitives/ImmutableIntArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual com.google.common.primitives.ImmutableIntArray$Builder.ensureRoomFor:(I)V
1: aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
iload 1
iastore
2: aload 0
dup
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
iconst_1
iadd
putfield com.google.common.primitives.ImmutableIntArray$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/ImmutableIntArray$Builder;
0 4 1 value I
MethodParameters:
Name Flags
value
public com.google.common.primitives.ImmutableIntArray$Builder addAll(int[]);
descriptor: ([I)Lcom/google/common/primitives/ImmutableIntArray$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.ImmutableIntArray$Builder.ensureRoomFor:(I)V
1: aload 1
iconst_0
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
aload 0
getfield com.google.common.primitives.ImmutableIntArray$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.ImmutableIntArray$Builder.count:I
aload 1
arraylength
iadd
putfield com.google.common.primitives.ImmutableIntArray$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/ImmutableIntArray$Builder;
0 4 1 values [I
MethodParameters:
Name Flags
values
public com.google.common.primitives.ImmutableIntArray$Builder addAll(java.lang.Iterable<java.lang.Integer>);
descriptor: (Ljava/lang/Iterable;)Lcom/google/common/primitives/ImmutableIntArray$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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.ImmutableIntArray$Builder.addAll:(Ljava/util/Collection;)Lcom/google/common/primitives/ImmutableIntArray$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.ImmutableIntArray$Builder java.lang.Iterable top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 4: aload 0
aload 2
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.google.common.primitives.ImmutableIntArray$Builder.add:(I)Lcom/google/common/primitives/ImmutableIntArray$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/ImmutableIntArray$Builder;
0 7 1 values Ljava/lang/Iterable<Ljava/lang/Integer;>;
4 5 2 value Ljava/lang/Integer;
Signature: (Ljava/lang/Iterable<Ljava/lang/Integer;>;)Lcom/google/common/primitives/ImmutableIntArray$Builder;
MethodParameters:
Name Flags
values
public com.google.common.primitives.ImmutableIntArray$Builder addAll(java.util.Collection<java.lang.Integer>);
descriptor: (Ljava/util/Collection;)Lcom/google/common/primitives/ImmutableIntArray$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.ImmutableIntArray$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.ImmutableIntArray$Builder java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 3: aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
aload 0
dup
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
dup_x1
iconst_1
iadd
putfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
aload 2
invokevirtual java.lang.Integer.intValue:()I
iastore
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/ImmutableIntArray$Builder;
0 6 1 values Ljava/util/Collection<Ljava/lang/Integer;>;
3 4 2 value Ljava/lang/Integer;
Signature: (Ljava/util/Collection<Ljava/lang/Integer;>;)Lcom/google/common/primitives/ImmutableIntArray$Builder;
MethodParameters:
Name Flags
values
public com.google.common.primitives.ImmutableIntArray$Builder addAll(java.util.stream.IntStream);
descriptor: (Ljava/util/stream/IntStream;)Lcom/google/common/primitives/ImmutableIntArray$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.IntStream.spliterator:()Ljava/util/Spliterator$OfInt;
astore 2
start local 2 1: aload 2
invokeinterface java.util.Spliterator$OfInt.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.ImmutableIntArray$Builder.ensureRoomFor:(I)V
4: StackMap locals: java.util.Spliterator$OfInt long
StackMap stack:
aload 2
aload 0
invokedynamic accept(Lcom/google/common/primitives/ImmutableIntArray$Builder;)Ljava/util/function/IntConsumer;
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:
(I)V
com/google/common/primitives/ImmutableIntArray$Builder.add(I)Lcom/google/common/primitives/ImmutableIntArray$Builder; (5)
(I)V
invokeinterface java.util.Spliterator$OfInt.forEachRemaining:(Ljava/util/function/IntConsumer;)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/ImmutableIntArray$Builder;
0 6 1 stream Ljava/util/stream/IntStream;
1 6 2 spliterator Ljava/util/Spliterator$OfInt;
2 6 3 size J
MethodParameters:
Name Flags
stream
public com.google.common.primitives.ImmutableIntArray$Builder addAll(com.google.common.primitives.ImmutableIntArray);
descriptor: (Lcom/google/common/primitives/ImmutableIntArray;)Lcom/google/common/primitives/ImmutableIntArray$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.ImmutableIntArray.length:()I
invokevirtual com.google.common.primitives.ImmutableIntArray$Builder.ensureRoomFor:(I)V
1: aload 1
getfield com.google.common.primitives.ImmutableIntArray.array:[I
aload 1
getfield com.google.common.primitives.ImmutableIntArray.start:I
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
aload 1
invokevirtual com.google.common.primitives.ImmutableIntArray.length:()I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
dup
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
aload 1
invokevirtual com.google.common.primitives.ImmutableIntArray.length:()I
iadd
putfield com.google.common.primitives.ImmutableIntArray$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/ImmutableIntArray$Builder;
0 4 1 values Lcom/google/common/primitives/ImmutableIntArray;
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.ImmutableIntArray$Builder.count:I
iload 1
iadd
istore 2
start local 2 1: iload 2
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
arraylength
if_icmple 5
2: aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
arraylength
iload 2
invokestatic com.google.common.primitives.ImmutableIntArray$Builder.expandedCapacity:(II)I
newarray 10
astore 3
start local 3 3: aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
iconst_0
aload 3
iconst_0
aload 0
getfield com.google.common.primitives.ImmutableIntArray$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.ImmutableIntArray$Builder.array:[I
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/ImmutableIntArray$Builder;
0 6 1 numberToAdd I
1 6 2 newCount I
3 5 3 newArray [I
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.ImmutableIntArray build();
descriptor: ()Lcom/google/common/primitives/ImmutableIntArray;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
ifne 1
getstatic com.google.common.primitives.ImmutableIntArray.EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
goto 2
StackMap locals:
StackMap stack:
1: new com.google.common.primitives.ImmutableIntArray
dup
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.array:[I
iconst_0
aload 0
getfield com.google.common.primitives.ImmutableIntArray$Builder.count:I
invokespecial com.google.common.primitives.ImmutableIntArray.<init>:([III)V
StackMap locals:
StackMap stack: com.google.common.primitives.ImmutableIntArray
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/primitives/ImmutableIntArray$Builder;
RuntimeVisibleAnnotations:
com.google.errorprone.annotations.CheckReturnValue()
}
SourceFile: "ImmutableIntArray.java"
NestHost: com.google.common.primitives.ImmutableIntArray
InnerClasses:
public final Builder = com.google.common.primitives.ImmutableIntArray$Builder of com.google.common.primitives.ImmutableIntArray
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract OfInt = java.util.Spliterator$OfInt of java.util.Spliterator
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()