public final class com.google.common.collect.ObjectArrays
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.ObjectArrays
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/ObjectArrays;
public static <T> T[] newArray(java.lang.Class<T>, );
descriptor: (Ljava/lang/Class;I)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 type Ljava/lang/Class<TT;>;
0 1 1 length I
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;I)[TT;
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
MethodParameters:
Name Flags
type
length
public static <T> T[] newArray(T[], );
descriptor: ([Ljava/lang/Object;I)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic com.google.common.collect.Platform.newArray:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 reference [Ljava/lang/Object;
0 1 1 length I
Signature: <T:Ljava/lang/Object;>([TT;I)[TT;
MethodParameters:
Name Flags
reference
length
public static <T> T[] concat(T[], T[], java.lang.Class<T>);
descriptor: ([Ljava/lang/Object;[Ljava/lang/Object;Ljava/lang/Class;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
arraylength
aload 1
arraylength
iadd
invokestatic com.google.common.collect.ObjectArrays.newArray:(Ljava/lang/Class;I)[Ljava/lang/Object;
astore 3
start local 3 1: aload 0
iconst_0
aload 3
iconst_0
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 1
iconst_0
aload 3
aload 0
arraylength
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 first [Ljava/lang/Object;
0 4 1 second [Ljava/lang/Object;
0 4 2 type Ljava/lang/Class<TT;>;
1 4 3 result [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;[TT;Ljava/lang/Class<TT;>;)[TT;
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
MethodParameters:
Name Flags
first
second
type
public static <T> T[] concat(T, );
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 1
arraylength
iconst_1
iadd
invokestatic com.google.common.collect.ObjectArrays.newArray:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
iconst_0
aload 0
aastore
2: aload 1
iconst_0
aload 2
iconst_1
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 element TT;
0 4 1 array [Ljava/lang/Object;
1 4 2 result [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(TT;[TT;)[TT;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
element
array
public static <T> T[] concat(T[], );
descriptor: ([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
arraylength
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
aload 0
arraylength
aload 1
aastore
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 array [Ljava/lang/Object;
0 3 1 element TT;
1 3 2 result [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;TT;)[TT;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
array
element
static <T> T[] toArrayImpl(java.util.Collection<?>, );
descriptor: (Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.Collection.size:()I
istore 2
start local 2 1: aload 1
arraylength
iload 2
if_icmpge 3
2: aload 1
iload 2
invokestatic com.google.common.collect.ObjectArrays.newArray:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 1
3: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokestatic com.google.common.collect.ObjectArrays.fillArray:(Ljava/lang/Iterable;[Ljava/lang/Object;)[Ljava/lang/Object;
pop
4: aload 1
arraylength
iload 2
if_icmple 6
5: aload 1
iload 2
aconst_null
aastore
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 c Ljava/util/Collection<*>;
0 7 1 array [Ljava/lang/Object;
1 7 2 size I
Signature: <T:Ljava/lang/Object;>(Ljava/util/Collection<*>;[TT;)[TT;
MethodParameters:
Name Flags
c
array
static <T> T[] toArrayImpl([], int, int, );
descriptor: ([Ljava/lang/Object;II[Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 1
iload 2
iadd
aload 0
arraylength
invokestatic com.google.common.base.Preconditions.checkPositionIndexes:(III)V
1: aload 3
arraylength
iload 2
if_icmpge 4
2: aload 3
iload 2
invokestatic com.google.common.collect.ObjectArrays.newArray:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 3
3: goto 6
StackMap locals:
StackMap stack:
4: aload 3
arraylength
iload 2
if_icmple 6
5: aload 3
iload 2
aconst_null
aastore
6: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 3
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 src [Ljava/lang/Object;
0 8 1 offset I
0 8 2 len I
0 8 3 dst [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([Ljava/lang/Object;II[TT;)[TT;
MethodParameters:
Name Flags
src
offset
len
dst
static [] toArrayImpl(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)[Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokeinterface java.util.Collection.size:()I
anewarray java.lang.Object
invokestatic com.google.common.collect.ObjectArrays.fillArray:(Ljava/lang/Iterable;[Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)[Ljava/lang/Object;
MethodParameters:
Name Flags
c
static java.lang.Object[] copyAsObjectArray(java.lang.Object[], int, int);
descriptor: ([Ljava/lang/Object;II)[Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 1
iload 2
iadd
aload 0
arraylength
invokestatic com.google.common.base.Preconditions.checkPositionIndexes:(III)V
1: iload 2
ifne 3
2: iconst_0
anewarray java.lang.Object
areturn
3: StackMap locals:
StackMap stack:
iload 2
anewarray java.lang.Object
astore 3
start local 3 4: aload 0
iload 1
aload 3
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 elements [Ljava/lang/Object;
0 6 1 offset I
0 6 2 length I
4 6 3 result [Ljava/lang/Object;
MethodParameters:
Name Flags
elements
offset
length
private static [] fillArray(java.lang.Iterable<?>, []);
descriptor: (Ljava/lang/Iterable;[Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: java.lang.Iterable java.lang.Object[] int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 3: aload 1
iload 2
iinc 2 1
aload 3
aastore
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 elements Ljava/lang/Iterable<*>;
0 6 1 array [Ljava/lang/Object;
1 6 2 i I
3 4 3 element Ljava/lang/Object;
Signature: (Ljava/lang/Iterable<*>;[Ljava/lang/Object;)[Ljava/lang/Object;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
elements
array
static void swap(java.lang.Object[], int, int);
descriptor: ([Ljava/lang/Object;II)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aaload
astore 3
start local 3 1: aload 0
iload 1
aload 0
iload 2
aaload
aastore
2: aload 0
iload 2
aload 3
aastore
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 array [Ljava/lang/Object;
0 4 1 i I
0 4 2 j I
1 4 3 temp Ljava/lang/Object;
MethodParameters:
Name Flags
array
i
j
static java.lang.Object[] checkElementsNotNull(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
arraylength
invokestatic com.google.common.collect.ObjectArrays.checkElementsNotNull:([Ljava/lang/Object;I)[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 array [Ljava/lang/Object;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
array
static java.lang.Object[] checkElementsNotNull(java.lang.Object[], int);
descriptor: ([Ljava/lang/Object;I)[Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
aaload
iload 2
invokestatic com.google.common.collect.ObjectArrays.checkElementNotNull:(Ljava/lang/Object;I)Ljava/lang/Object;
pop
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
iload 1
if_icmplt 2
end local 2 5: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 array [Ljava/lang/Object;
0 6 1 length I
1 5 2 i I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
array
length
static java.lang.Object checkElementNotNull(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
new java.lang.StringBuilder
dup
ldc "at index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 element Ljava/lang/Object;
0 3 1 index I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
element
index
}
SourceFile: "ObjectArrays.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible(emulated = true)