35 lines
1.4 KiB
Java
35 lines
1.4 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.models.presence.Presence;
|
|
import d0.z.d.m;
|
|
import j0.k.b;
|
|
import java.util.Collection;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
/* compiled from: StoreUserPresence.kt */
|
|
public final class StoreUserPresence$observePresencesForUsers$1<T, R> implements b<Map<Long, ? extends Presence>, Map<Long, ? extends Presence>> {
|
|
public final /* synthetic */ Collection $userIds;
|
|
|
|
public StoreUserPresence$observePresencesForUsers$1(Collection collection) {
|
|
this.$userIds = collection;
|
|
}
|
|
|
|
/* 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 */ Map<Long, ? extends Presence> call(Map<Long, ? extends Presence> map) {
|
|
return call((Map<Long, Presence>) map);
|
|
}
|
|
|
|
public final Map<Long, Presence> call(Map<Long, Presence> map) {
|
|
m.checkNotNullExpressionValue(map, "it");
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
|
for (Map.Entry<Long, Presence> entry : map.entrySet()) {
|
|
if (this.$userIds.contains(Long.valueOf(entry.getKey().longValue()))) {
|
|
linkedHashMap.put(entry.getKey(), entry.getValue());
|
|
}
|
|
}
|
|
return linkedHashMap;
|
|
}
|
|
}
|