34 lines
1 KiB
Java
34 lines
1 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: StoreStream.kt */
|
||
|
public final class StoreStream$dispatchSubscribe$2 extends o implements Function1<List<? extends T>, Unit> {
|
||
|
public final /* synthetic */ Function1 $onNext;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreStream$dispatchSubscribe$2(Function1 function1) {
|
||
|
super(1);
|
||
|
this.$onNext = function1;
|
||
|
}
|
||
|
|
||
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
||
|
@Override // kotlin.jvm.functions.Function1
|
||
|
public /* bridge */ /* synthetic */ Unit invoke(Object obj) {
|
||
|
invoke((List) obj);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(List<? extends T> list) {
|
||
|
m.checkNotNullParameter(list, "batch");
|
||
|
Iterator it = list.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
this.$onNext.invoke(it.next());
|
||
|
}
|
||
|
}
|
||
|
}
|