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

152 lines
4.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
/* renamed from: o.gab, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C14861gab implements Collection<C14864gae>, InterfaceC14932gcO {
public final byte[] c;
@Override // java.util.Collection
public final boolean contains(Object obj) {
if (!(obj instanceof C14864gae)) {
return false;
}
byte b = ((C14864gae) obj).e;
byte[] bArr = this.c;
C14957gcv.e(bArr, "");
return C14875gap.e(bArr, b) >= 0;
}
@Override // java.util.Collection
public final /* bridge */ /* synthetic */ int size() {
return this.c.length;
}
/* renamed from: o.gab$IeS */
/* loaded from: classes6.dex */
static final class IeS implements Iterator<C14864gae>, InterfaceC14932gcO {
private final byte[] a;
private int d;
public IeS(byte[] bArr) {
C14957gcv.e(bArr, "");
this.a = bArr;
}
@Override // java.util.Iterator
public final /* synthetic */ C14864gae next() {
int i = this.d;
byte[] bArr = this.a;
if (i >= bArr.length) {
throw new NoSuchElementException(String.valueOf(this.d));
}
this.d = i + 1;
return new C14864gae(bArr[i]);
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.d < this.a.length;
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
}
@Override // java.util.Collection
public final boolean containsAll(Collection<? extends Object> collection) {
C14957gcv.e(collection, "");
byte[] bArr = this.c;
C14957gcv.e(collection, "");
Collection<? extends Object> collection2 = collection;
if (collection2.isEmpty()) {
return true;
}
for (Object obj : collection2) {
if (obj instanceof C14864gae) {
byte b = ((C14864gae) obj).e;
C14957gcv.e(bArr, "");
if (C14875gap.e(bArr, b) >= 0) {
}
}
return false;
}
return true;
}
@Override // java.util.Collection
public final boolean equals(Object obj) {
return (obj instanceof C14861gab) && C14957gcv.b(this.c, ((C14861gab) obj).c);
}
@Override // java.util.Collection
public final int hashCode() {
return Arrays.hashCode(this.c);
}
@Override // java.util.Collection
public final boolean isEmpty() {
return this.c.length == 0;
}
@Override // java.util.Collection, java.lang.Iterable
public final Iterator<C14864gae> iterator() {
return new IeS(this.c);
}
public final String toString() {
byte[] bArr = this.c;
StringBuilder sb = new StringBuilder("UByteArray(storage=");
sb.append(Arrays.toString(bArr));
sb.append(')');
return sb.toString();
}
@Override // java.util.Collection
public final <T> T[] toArray(T[] tArr) {
C14957gcv.e(tArr, "");
return (T[]) C14952gcq.d(this, tArr);
}
@Override // java.util.Collection
public final Object[] toArray() {
return C14952gcq.c(this);
}
@Override // java.util.Collection
public final boolean retainAll(Collection<? extends Object> collection) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@Override // java.util.Collection
public final boolean removeAll(Collection<? extends Object> collection) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@Override // java.util.Collection
public final boolean remove(Object obj) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@Override // java.util.Collection
public final void clear() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@Override // java.util.Collection
public final boolean addAll(Collection<? extends C14864gae> collection) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
@Override // java.util.Collection
public final /* synthetic */ boolean add(C14864gae c14864gae) {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
}