151 lines
4.2 KiB
Java
151 lines
4.2 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.AbstractList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.List;
|
||
|
import java.util.RandomAccess;
|
||
|
import o.MTP;
|
||
|
|
||
|
/* renamed from: o.jyR, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
abstract class AbstractC15969jyR<E> extends AbstractList<E> implements MTP.RVV<E> {
|
||
|
private boolean b = true;
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.Collection, java.util.List
|
||
|
public boolean equals(Object obj) {
|
||
|
if (obj == this) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof List)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (!(obj instanceof RandomAccess)) {
|
||
|
return super.equals(obj);
|
||
|
}
|
||
|
List list = (List) obj;
|
||
|
int size = size();
|
||
|
if (size != list.size()) {
|
||
|
return false;
|
||
|
}
|
||
|
for (int i = 0; i < size; i++) {
|
||
|
if (!get(i).equals(list.get(i))) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.Collection, java.util.List
|
||
|
public int hashCode() {
|
||
|
int size = size();
|
||
|
int i = 1;
|
||
|
for (int i2 = 0; i2 < size; i2++) {
|
||
|
i = (i * 31) + get(i2).hashCode();
|
||
|
}
|
||
|
return i;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public boolean add(E e) {
|
||
|
if (this.b) {
|
||
|
return super.add(e);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.List
|
||
|
public void add(int i, E e) {
|
||
|
if (this.b) {
|
||
|
super.add(i, e);
|
||
|
return;
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public boolean addAll(Collection<? extends E> collection) {
|
||
|
if (this.b) {
|
||
|
return super.addAll(collection);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.List
|
||
|
public boolean addAll(int i, Collection<? extends E> collection) {
|
||
|
if (this.b) {
|
||
|
return super.addAll(i, collection);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public void clear() {
|
||
|
if (this.b) {
|
||
|
super.clear();
|
||
|
return;
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.List
|
||
|
public E remove(int i) {
|
||
|
if (this.b) {
|
||
|
return (E) super.remove(i);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public boolean remove(Object obj) {
|
||
|
if (this.b) {
|
||
|
int indexOf = indexOf(obj);
|
||
|
if (indexOf == -1) {
|
||
|
return false;
|
||
|
}
|
||
|
remove(indexOf);
|
||
|
return true;
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public boolean removeAll(Collection<?> collection) {
|
||
|
if (this.b) {
|
||
|
return super.removeAll(collection);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||
|
public boolean retainAll(Collection<?> collection) {
|
||
|
if (this.b) {
|
||
|
return super.retainAll(collection);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractList, java.util.List
|
||
|
public E set(int i, E e) {
|
||
|
if (this.b) {
|
||
|
return (E) super.set(i, e);
|
||
|
}
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void d() {
|
||
|
if (!this.b) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.MTP.RVV
|
||
|
public final void a() {
|
||
|
this.b = false;
|
||
|
}
|
||
|
|
||
|
public boolean e() {
|
||
|
return this.b;
|
||
|
}
|
||
|
}
|