33 lines
1.3 KiB
Java
33 lines
1.3 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import d0.z.d.m;
|
||
|
import j0.k.b;
|
||
|
import java.util.LinkedHashMap;
|
||
|
import java.util.Map;
|
||
|
/* compiled from: StoreUserRelationships.kt */
|
||
|
public final class StoreUserRelationships$observeForType$1<T, R> implements b<Map<Long, ? extends Integer>, Map<Long, ? extends Integer>> {
|
||
|
public final /* synthetic */ int $relationshipType;
|
||
|
|
||
|
public StoreUserRelationships$observeForType$1(int i) {
|
||
|
this.$relationshipType = i;
|
||
|
}
|
||
|
|
||
|
/* 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, "relationships");
|
||
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
||
|
for (Map.Entry<Long, Integer> entry : map.entrySet()) {
|
||
|
if (entry.getValue().intValue() == this.$relationshipType) {
|
||
|
linkedHashMap.put(entry.getKey(), entry.getValue());
|
||
|
}
|
||
|
}
|
||
|
return linkedHashMap;
|
||
|
}
|
||
|
}
|