hn.java
2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import com.bitstrips.imoji.models.Sticker;
import com.bitstrips.imoji.models.StickerPacks;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public final class hn
extends AsyncTask<StickerPacks, Void, Void>
{
private final hn.a a;
private LinkedHashMap<String, List<Sticker>> b = new LinkedHashMap();
private HashMap<String, List<Sticker>> c = new HashMap();
private HashMap<String, Sticker> d = new HashMap();
public hn(@NonNull hn.a parama)
{
this.a = parama;
}
@VisibleForTesting
private static HashMap<String, List<Sticker>> a(HashMap<String, HashSet<Sticker>> paramHashMap1, HashMap<String, HashSet<Sticker>> paramHashMap2)
{
HashMap localHashMap = new HashMap();
Object localObject1 = paramHashMap1.entrySet().iterator();
Object localObject2;
while (((Iterator)localObject1).hasNext())
{
localObject2 = (Map.Entry)((Iterator)localObject1).next();
localHashMap.put(((Map.Entry)localObject2).getKey(), new ArrayList((Collection)((Map.Entry)localObject2).getValue()));
}
paramHashMap2 = paramHashMap2.entrySet().iterator();
while (paramHashMap2.hasNext())
{
localObject2 = (Map.Entry)paramHashMap2.next();
localObject1 = (String)((Map.Entry)localObject2).getKey();
localObject2 = new HashSet((Collection)((Map.Entry)localObject2).getValue());
if (localHashMap.containsKey(localObject1))
{
((HashSet)localObject2).removeAll((Collection)paramHashMap1.get(localObject1));
((List)localHashMap.get(localObject1)).addAll((Collection)localObject2);
}
else
{
localHashMap.put(localObject1, new ArrayList((Collection)localObject2));
}
}
return localHashMap;
}
private static List<Sticker> a(List<Sticker> paramList)
{
ArrayList localArrayList = new ArrayList(paramList.size());
paramList = paramList.iterator();
while (paramList.hasNext())
{
Sticker localSticker = (Sticker)paramList.next();
if (localSticker.isSolomoji()) {
localArrayList.add(localSticker);
}
}
return localArrayList;
}
public static abstract interface a
{
public abstract void onIndexTaskComplete(Map<String, List<Sticker>> paramMap1, Map<String, List<Sticker>> paramMap2, Map<String, Sticker> paramMap);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/hn.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/