what-the-bank/sources/o/C13400fZc.java

165 lines
4.5 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.RandomAccess;
import java.util.concurrent.atomic.AtomicInteger;
/* renamed from: o.fZc, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13400fZc<T> extends AtomicInteger implements List<T>, RandomAccess {
private ArrayList<T> e = new ArrayList<>();
@Override // java.util.List, java.util.Collection
public final int size() {
return get();
}
@Override // java.util.List, java.util.Collection
public final boolean isEmpty() {
return get() == 0;
}
@Override // java.util.List, java.util.Collection
public final boolean contains(Object obj) {
return this.e.contains(obj);
}
@Override // java.util.List, java.util.Collection, java.lang.Iterable
public final Iterator<T> iterator() {
return this.e.iterator();
}
@Override // java.util.List, java.util.Collection
public final Object[] toArray() {
return this.e.toArray();
}
@Override // java.util.List, java.util.Collection
public final <E> E[] toArray(E[] eArr) {
return (E[]) this.e.toArray(eArr);
}
@Override // java.util.List, java.util.Collection
public final boolean add(T t) {
boolean add = this.e.add(t);
lazySet(this.e.size());
return add;
}
@Override // java.util.List, java.util.Collection
public final boolean remove(Object obj) {
boolean remove = this.e.remove(obj);
lazySet(this.e.size());
return remove;
}
@Override // java.util.List, java.util.Collection
public final boolean containsAll(Collection<?> collection) {
return this.e.containsAll(collection);
}
@Override // java.util.List, java.util.Collection
public final boolean addAll(Collection<? extends T> collection) {
boolean addAll = this.e.addAll(collection);
lazySet(this.e.size());
return addAll;
}
@Override // java.util.List
public final boolean addAll(int i, Collection<? extends T> collection) {
boolean addAll = this.e.addAll(i, collection);
lazySet(this.e.size());
return addAll;
}
@Override // java.util.List, java.util.Collection
public final boolean removeAll(Collection<?> collection) {
boolean removeAll = this.e.removeAll(collection);
lazySet(this.e.size());
return removeAll;
}
@Override // java.util.List, java.util.Collection
public final boolean retainAll(Collection<?> collection) {
boolean retainAll = this.e.retainAll(collection);
lazySet(this.e.size());
return retainAll;
}
@Override // java.util.List, java.util.Collection
public final void clear() {
this.e.clear();
lazySet(0);
}
@Override // java.util.List
public final T get(int i) {
return this.e.get(i);
}
@Override // java.util.List
public final T set(int i, T t) {
return this.e.set(i, t);
}
@Override // java.util.List
public final void add(int i, T t) {
this.e.add(i, t);
lazySet(this.e.size());
}
@Override // java.util.List
public final T remove(int i) {
T remove = this.e.remove(i);
lazySet(this.e.size());
return remove;
}
@Override // java.util.List
public final int indexOf(Object obj) {
return this.e.indexOf(obj);
}
@Override // java.util.List
public final int lastIndexOf(Object obj) {
return this.e.lastIndexOf(obj);
}
@Override // java.util.List
public final ListIterator<T> listIterator() {
return this.e.listIterator();
}
@Override // java.util.List
public final ListIterator<T> listIterator(int i) {
return this.e.listIterator(i);
}
@Override // java.util.List
public final List<T> subList(int i, int i2) {
return this.e.subList(i, i2);
}
@Override // java.util.List, java.util.Collection
public final boolean equals(Object obj) {
if (obj instanceof C13400fZc) {
return this.e.equals(((C13400fZc) obj).e);
}
return this.e.equals(obj);
}
@Override // java.util.List, java.util.Collection
public final int hashCode() {
return this.e.hashCode();
}
@Override // java.util.concurrent.atomic.AtomicInteger
public final String toString() {
return this.e.toString();
}
}