jimu-decompiled/sources/io/reactivex/internal/util/AppendOnlyLinkedArrayList.java
2025-05-13 19:24:51 +02:00

117 lines
3.2 KiB
Java

package io.reactivex.internal.util;
import io.reactivex.functions.Predicate;
/* loaded from: classes2.dex */
public class AppendOnlyLinkedArrayList<T> {
final int a;
final Object[] b;
Object[] c;
int d;
public interface NonThrowingPredicate<T> extends Predicate<T> {
@Override // io.reactivex.functions.Predicate
boolean a(T t);
}
public AppendOnlyLinkedArrayList(int i) {
this.a = i;
this.b = new Object[i + 1];
this.c = this.b;
}
public void a(T t) {
int i = this.a;
int i2 = this.d;
if (i2 == i) {
Object[] objArr = new Object[i + 1];
this.c[i] = objArr;
this.c = objArr;
i2 = 0;
}
this.c[i2] = t;
this.d = i2 + 1;
}
public void b(T t) {
this.b[0] = t;
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x0018, code lost:
continue;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public void a(io.reactivex.internal.util.AppendOnlyLinkedArrayList.NonThrowingPredicate<? super T> r5) {
/*
r4 = this;
java.lang.Object[] r0 = r4.b
int r1 = r4.a
L4:
if (r0 == 0) goto L1d
r2 = 0
L7:
if (r2 >= r1) goto L18
r3 = r0[r2]
if (r3 != 0) goto Le
goto L18
Le:
boolean r3 = r5.a(r3)
if (r3 == 0) goto L15
return
L15:
int r2 = r2 + 1
goto L7
L18:
r0 = r0[r1]
java.lang.Object[] r0 = (java.lang.Object[]) r0
goto L4
L1d:
return
*/
throw new UnsupportedOperationException("Method not decompiled: io.reactivex.internal.util.AppendOnlyLinkedArrayList.a(io.reactivex.internal.util.AppendOnlyLinkedArrayList$NonThrowingPredicate):void");
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x0019, code lost:
continue;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public <U> boolean a(io.reactivex.Observer<? super U> r5) {
/*
r4 = this;
java.lang.Object[] r0 = r4.b
int r1 = r4.a
L4:
r2 = 0
if (r0 == 0) goto L1e
L7:
if (r2 >= r1) goto L19
r3 = r0[r2]
if (r3 != 0) goto Le
goto L19
Le:
boolean r3 = io.reactivex.internal.util.NotificationLite.acceptFull(r3, r5)
if (r3 == 0) goto L16
r5 = 1
return r5
L16:
int r2 = r2 + 1
goto L7
L19:
r0 = r0[r1]
java.lang.Object[] r0 = (java.lang.Object[]) r0
goto L4
L1e:
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: io.reactivex.internal.util.AppendOnlyLinkedArrayList.a(io.reactivex.Observer):boolean");
}
}