- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
56 lines
1.6 KiB
Java
56 lines
1.6 KiB
Java
package com.google.common.collect;
|
|
|
|
import com.google.common.base.Preconditions;
|
|
import java.util.Objects;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class RegularImmutableList extends ImmutableList {
|
|
public static final ImmutableList EMPTY = new RegularImmutableList(new Object[0], 0);
|
|
public final transient Object[] array;
|
|
public final transient int size;
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public Object[] internalArray() {
|
|
return this.array;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public int internalArrayEnd() {
|
|
return this.size;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public int internalArrayStart() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
public boolean isPartialView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public int size() {
|
|
return this.size;
|
|
}
|
|
|
|
public RegularImmutableList(Object[] objArr, int i) {
|
|
this.array = objArr;
|
|
this.size = i;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableList, com.google.common.collect.ImmutableCollection
|
|
public int copyIntoArray(Object[] objArr, int i) {
|
|
System.arraycopy(this.array, 0, objArr, i, this.size);
|
|
return i + this.size;
|
|
}
|
|
|
|
@Override // java.util.List
|
|
public Object get(int i) {
|
|
Preconditions.checkElementIndex(i, this.size);
|
|
Object obj = this.array[i];
|
|
Objects.requireNonNull(obj);
|
|
return obj;
|
|
}
|
|
}
|