hn.java 2.76 KB
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
 */