116 lines
3.7 KiB
Java
116 lines
3.7 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Collection;
|
||
|
import java.util.Iterator;
|
||
|
|
||
|
/* renamed from: o.gai, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class AbstractC14868gai<E> implements Collection<E>, InterfaceC14932gcO {
|
||
|
public abstract int d();
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public final int size() {
|
||
|
return d();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean contains(E e) {
|
||
|
AbstractC14868gai<E> abstractC14868gai = this;
|
||
|
if (abstractC14868gai.isEmpty()) {
|
||
|
return false;
|
||
|
}
|
||
|
Iterator<E> it = abstractC14868gai.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
if (C14957gcv.b(it.next(), e)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // java.util.Collection
|
||
|
public boolean containsAll(Collection<? extends Object> collection) {
|
||
|
C14957gcv.e(collection, "");
|
||
|
Collection<? extends Object> collection2 = collection;
|
||
|
if (collection2.isEmpty()) {
|
||
|
return true;
|
||
|
}
|
||
|
Iterator<T> it = collection2.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
if (!contains(it.next())) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean isEmpty() {
|
||
|
return size() == 0;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.gai$HBt */
|
||
|
/* loaded from: classes.dex */
|
||
|
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<E, CharSequence> {
|
||
|
private AbstractC14868gai<E> a;
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ CharSequence invoke(Object obj) {
|
||
|
return obj == this.a ? "(this Collection)" : String.valueOf(obj);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
HBt(AbstractC14868gai<? extends E> abstractC14868gai) {
|
||
|
super(1);
|
||
|
this.a = abstractC14868gai;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
return C14881gav.b(this, ", ", "[", "]", 0, null, new HBt(this), 24);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public Object[] toArray() {
|
||
|
return C14952gcq.c(this);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public <T> T[] toArray(T[] tArr) {
|
||
|
C14957gcv.e(tArr, "");
|
||
|
return (T[]) C14952gcq.d(this, tArr);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean retainAll(Collection<? extends Object> collection) {
|
||
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean removeAll(Collection<? extends Object> collection) {
|
||
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean remove(Object obj) {
|
||
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public void clear() {
|
||
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean addAll(Collection<? extends E> collection) {
|
||
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection
|
||
|
public boolean add(E e) {
|
||
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||
|
}
|
||
|
}
|