discord-jadx/app/src/main/java/com/discord/stores/StoreChannels$observeChanne...

32 lines
1.2 KiB
Java

package com.discord.stores;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.discord.api.channel.Channel;
import j0.k.b;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/* compiled from: StoreChannels.kt */
public final class StoreChannels$observeChannelCategories$1<T, R> implements b<Map<Long, ? extends Channel>, List<? extends Channel>> {
public static final StoreChannels$observeChannelCategories$1 INSTANCE = new StoreChannels$observeChannelCategories$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 */ List<? extends Channel> call(Map<Long, ? extends Channel> map) {
return call((Map<Long, Channel>) map);
}
public final List<Channel> call(Map<Long, Channel> map) {
Collection<Channel> values = map.values();
ArrayList arrayList = new ArrayList();
for (T t : values) {
if (AnimatableValueParser.f1(t)) {
arrayList.add(t);
}
}
return arrayList;
}
}