109 lines
3.4 KiB
Java
109 lines
3.4 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
import java.lang.reflect.Array;
|
||
|
import java.util.AbstractCollection;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Collection;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class zzlf<E> extends AbstractCollection<E> implements Serializable {
|
||
|
private static final Object[] zzacv = new Object[0];
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
public abstract boolean contains(Object obj);
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||
|
/* renamed from: zzij, reason: merged with bridge method [inline-methods] */
|
||
|
public abstract zzlt<E> iterator();
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public Object[] zzik() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public abstract boolean zzio();
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
public final Object[] toArray() {
|
||
|
return toArray(zzacv);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
public final <T> T[] toArray(T[] tArr) {
|
||
|
zzks.checkNotNull(tArr);
|
||
|
int size = size();
|
||
|
if (tArr.length < size) {
|
||
|
Object[] zzik = zzik();
|
||
|
if (zzik != null) {
|
||
|
return (T[]) Arrays.copyOfRange(zzik, zzil(), zzim(), tArr.getClass());
|
||
|
}
|
||
|
tArr = (T[]) ((Object[]) Array.newInstance(tArr.getClass().getComponentType(), size));
|
||
|
} else if (tArr.length > size) {
|
||
|
tArr[size] = null;
|
||
|
}
|
||
|
zza(tArr, 0);
|
||
|
return tArr;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public int zzil() {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
int zzim() {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
@Deprecated
|
||
|
public final boolean add(E e) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
@Deprecated
|
||
|
public final boolean remove(Object obj) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
@Deprecated
|
||
|
public final boolean addAll(Collection<? extends E> collection) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
@Deprecated
|
||
|
public final boolean removeAll(Collection<?> collection) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
@Deprecated
|
||
|
public final boolean retainAll(Collection<?> collection) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection
|
||
|
@Deprecated
|
||
|
public final void clear() {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
public zzlg<E> zzin() {
|
||
|
return isEmpty() ? zzlg.zzip() : zzlg.zza(toArray());
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public int zza(Object[] objArr, int i) {
|
||
|
zzlt zzltVar = (zzlt) iterator();
|
||
|
while (zzltVar.hasNext()) {
|
||
|
objArr[i] = zzltVar.next();
|
||
|
i++;
|
||
|
}
|
||
|
return i;
|
||
|
}
|
||
|
}
|