what-the-bank/sources/com/google/android/libraries/places/internal/zzadr.java

128 lines
3.5 KiB
Java

package com.google.android.libraries.places.internal;
import java.util.AbstractList;
import java.util.Collection;
import java.util.List;
import java.util.RandomAccess;
/* loaded from: classes2.dex */
abstract class zzadr extends AbstractList implements zzafg {
private boolean zza = true;
@Override // java.util.AbstractList, java.util.List
public void add(int i, Object obj) {
zza();
super.add(i, obj);
}
@Override // java.util.AbstractList, java.util.List
public boolean addAll(int i, Collection collection) {
zza();
return super.addAll(i, collection);
}
@Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public void clear() {
zza();
super.clear();
}
@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.List
public Object remove(int i) {
zza();
return super.remove(i);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean removeAll(Collection collection) {
zza();
return super.removeAll(collection);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean retainAll(Collection collection) {
zza();
return super.retainAll(collection);
}
@Override // java.util.AbstractList, java.util.List
public Object set(int i, Object obj) {
zza();
return super.set(i, obj);
}
/* JADX INFO: Access modifiers changed from: protected */
public final void zza() {
if (!this.zza) {
throw new UnsupportedOperationException();
}
}
@Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
public boolean add(Object obj) {
zza();
return super.add(obj);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public boolean addAll(Collection collection) {
zza();
return super.addAll(collection);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final boolean remove(Object obj) {
zza();
int indexOf = indexOf(obj);
if (indexOf == -1) {
return false;
}
remove(indexOf);
return true;
}
@Override // com.google.android.libraries.places.internal.zzafg
public final boolean zzc() {
return this.zza;
}
@Override // com.google.android.libraries.places.internal.zzafg
public final void zzb() {
this.zza = false;
}
}