what-the-bank/sources/com/google/common/collect/RegularImmutableAsList.java

71 lines
2.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.collect;
import java.util.ListIterator;
/* loaded from: classes2.dex */
class RegularImmutableAsList<E> extends ImmutableAsList<E> {
private final ImmutableCollection<E> delegate;
private final ImmutableList<? extends E> delegateList;
@Override // com.google.common.collect.ImmutableList, java.util.List
public /* bridge */ /* synthetic */ ListIterator listIterator(int i) {
return listIterator(i);
}
RegularImmutableAsList(ImmutableCollection<E> immutableCollection, ImmutableList<? extends E> immutableList) {
this.delegate = immutableCollection;
this.delegateList = immutableList;
}
RegularImmutableAsList(ImmutableCollection<E> immutableCollection, Object[] objArr) {
this(immutableCollection, ImmutableList.asImmutableList(objArr));
}
RegularImmutableAsList(ImmutableCollection<E> immutableCollection, Object[] objArr, int i) {
this(immutableCollection, ImmutableList.asImmutableList(objArr, i));
}
@Override // com.google.common.collect.ImmutableList, java.util.List
public UnmodifiableListIterator<E> listIterator(int i) {
return this.delegateList.listIterator(i);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.common.collect.ImmutableList, com.google.common.collect.ImmutableCollection
public int copyIntoArray(Object[] objArr, int i) {
return this.delegateList.copyIntoArray(objArr, i);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.common.collect.ImmutableCollection
public Object[] internalArray() {
return this.delegateList.internalArray();
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.common.collect.ImmutableCollection
public int internalArrayStart() {
return this.delegateList.internalArrayStart();
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.common.collect.ImmutableCollection
public int internalArrayEnd() {
return this.delegateList.internalArrayEnd();
}
@Override // java.util.List
public E get(int i) {
return this.delegateList.get(i);
}
ImmutableList<? extends E> delegateList() {
return this.delegateList;
}
@Override // com.google.common.collect.ImmutableAsList
ImmutableCollection<E> delegateCollection() {
return this.delegate;
}
}