Files
rr3-apk/decompiled/sources/com/google/common/collect/RegularImmutableList.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

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;
}
}