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

68 lines
2.3 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 */
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-02-10 02:59:54 +00:00
public final Function1<T, R> f3552b;
2021-08-03 07:33:18 +00:00
/* compiled from: Sequences.kt */
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;
public final /* synthetic */ u k;
2021-08-03 07:33:18 +00:00
public a(u uVar) {
2021-12-02 18:53:44 +00:00
this.k = uVar;
this.j = u.access$getSequence$p(uVar).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() {
2021-12-02 18:53:44 +00:00
return (R) u.access$getTransformer$p(this.k).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 DEBUG: Multi-variable search result rejected for r2v0, resolved type: kotlin.sequences.Sequence<? extends T> */
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: kotlin.jvm.functions.Function1<? super T, ? extends R> */
/* 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-02-10 02:59:54 +00:00
this.f3552b = 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-02-10 02:59:54 +00:00
return uVar.f3552b;
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-02-10 02:59:54 +00:00
return new h(this.a, this.f3552b, function1);
2021-08-03 07:33:18 +00:00
}
@Override // kotlin.sequences.Sequence
public Iterator<R> iterator() {
return new a(this);
}
}