26 lines
1.1 KiB
Java
26 lines
1.1 KiB
Java
|
package com.discord.widgets.guildscheduledevent;
|
||
|
|
||
|
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
|
||
|
import j0.k.b;
|
||
|
import java.util.List;
|
||
|
import java.util.concurrent.atomic.AtomicInteger;
|
||
|
/* compiled from: GuildScheduledEventListViewModel.kt */
|
||
|
public final class GuildScheduledEventListViewModel$Companion$observeStores$1<T, R> implements b<List<? extends GuildScheduledEvent>, Boolean> {
|
||
|
public final /* synthetic */ AtomicInteger $size;
|
||
|
|
||
|
public GuildScheduledEventListViewModel$Companion$observeStores$1(AtomicInteger atomicInteger) {
|
||
|
this.$size = atomicInteger;
|
||
|
}
|
||
|
|
||
|
public final Boolean call(List<GuildScheduledEvent> list) {
|
||
|
return Boolean.valueOf(list.size() == this.$size.get() || this.$size.getAndSet(list.size()) == -1);
|
||
|
}
|
||
|
|
||
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
||
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||
|
@Override // j0.k.b
|
||
|
public /* bridge */ /* synthetic */ Boolean call(List<? extends GuildScheduledEvent> list) {
|
||
|
return call((List<GuildScheduledEvent>) list);
|
||
|
}
|
||
|
}
|