discord-jadx/app/src/main/java/d0/f0/u.java

66 lines
2.0 KiB
Java
Raw Normal View History

2021-11-02 06:38:17 +00:00
package d0.f0;
2021-08-03 07:33:18 +00:00
2021-11-02 06:38:17 +00:00
import d0.z.d.m;
2021-08-03 07:33:18 +00:00
import java.util.Iterator;
import kotlin.jvm.functions.Function1;
import kotlin.sequences.Sequence;
/* compiled from: Sequences.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes3.dex */
2021-08-03 07:33:18 +00:00
public final class u<T, R> implements Sequence<R> {
public final Sequence<T> a;
2021-12-17 21:59:34 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-28 08:10:50 +00:00
public final Function1<T, R> f3571b;
2021-08-03 07:33:18 +00:00
/* compiled from: Sequences.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes3.dex */
2021-11-02 06:38:17 +00:00
public static final class a implements Iterator<R>, d0.z.d.g0.a {
2021-12-02 18:53:44 +00:00
public final Iterator<T> j;
2021-08-03 07:33:18 +00:00
2022-03-07 09:34:54 +00:00
public a() {
this.j = u.access$getSequence$p(u.this).iterator();
2021-08-03 07:33:18 +00:00
}
@Override // java.util.Iterator
public boolean hasNext() {
2021-12-02 18:53:44 +00:00
return this.j.hasNext();
2021-08-03 07:33:18 +00:00
}
@Override // java.util.Iterator
public R next() {
2022-03-07 09:34:54 +00:00
return (R) u.access$getTransformer$p(u.this).invoke(this.j.next());
2021-08-03 07:33:18 +00:00
}
@Override // java.util.Iterator
public void remove() {
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
}
}
/* JADX WARN: Multi-variable type inference failed */
public u(Sequence<? extends T> sequence, Function1<? super T, ? extends R> function1) {
m.checkNotNullParameter(sequence, "sequence");
m.checkNotNullParameter(function1, "transformer");
this.a = sequence;
2022-03-28 08:10:50 +00:00
this.f3571b = function1;
2021-08-03 07:33:18 +00:00
}
public static final /* synthetic */ Sequence access$getSequence$p(u uVar) {
return uVar.a;
}
public static final /* synthetic */ Function1 access$getTransformer$p(u uVar) {
2022-03-28 08:10:50 +00:00
return uVar.f3571b;
2021-08-03 07:33:18 +00:00
}
public final <E> Sequence<E> flatten$kotlin_stdlib(Function1<? super R, ? extends Iterator<? extends E>> function1) {
m.checkNotNullParameter(function1, "iterator");
2022-03-28 08:10:50 +00:00
return new h(this.a, this.f3571b, function1);
2021-08-03 07:33:18 +00:00
}
@Override // kotlin.sequences.Sequence
public Iterator<R> iterator() {
2022-03-07 09:34:54 +00:00
return new a();
2021-08-03 07:33:18 +00:00
}
}