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