pi.java 8.41 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.ImmutableBiMap;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.UnmodifiableIterator;
import java.io.Serializable;
import java.util.Map.Entry;
import javax.annotation.Nullable;

@GwtCompatible(emulated=true, serializable=true)
public final class pi<K, V>
  extends ImmutableBiMap<K, V>
{
  final transient ot<K, V>[] a;
  final transient int b;
  private final transient ot<K, V>[] c;
  private final transient ot<K, V>[] d;
  private final transient int e;
  private transient ImmutableBiMap<V, K> f;
  
  public pi(int paramInt, ot.a<?, ?>[] paramArrayOfa)
  {
    int i = oo.a(paramInt, 1.2D);
    this.b = (i - 1);
    ot[] arrayOfot1 = new ot[i];
    ot[] arrayOfot2 = new ot[i];
    ot[] arrayOfot3 = new ot[paramInt];
    int j = 0;
    i = 0;
    if (j < paramInt)
    {
      ot.a<?, ?> locala = paramArrayOfa[j];
      Object localObject2 = locala.getKey();
      Object localObject3 = locala.getValue();
      int k = localObject2.hashCode();
      int m = localObject3.hashCode();
      int n = oo.a(k) & this.b;
      int i1 = oo.a(m) & this.b;
      ot localot = arrayOfot1[n];
      Object localObject1 = localot;
      boolean bool;
      if (localObject1 != null)
      {
        if (!localObject2.equals(((ot)localObject1).getKey())) {}
        for (bool = true;; bool = false)
        {
          a(bool, "key", locala, (Map.Entry)localObject1);
          localObject1 = ((ot)localObject1).a();
          break;
        }
      }
      localObject2 = arrayOfot2[i1];
      localObject1 = localObject2;
      if (localObject1 != null)
      {
        if (!localObject3.equals(((ot)localObject1).getValue())) {}
        for (bool = true;; bool = false)
        {
          a(bool, "value", locala, (Map.Entry)localObject1);
          localObject1 = ((ot)localObject1).b();
          break;
        }
      }
      if ((localot == null) && (localObject2 == null)) {}
      for (localObject1 = locala;; localObject1 = new pi.c(locala, localot, (ot)localObject2))
      {
        arrayOfot1[n] = localObject1;
        arrayOfot2[i1] = localObject1;
        arrayOfot3[j] = localObject1;
        j += 1;
        i += (k ^ m);
        break;
      }
    }
    this.c = arrayOfot1;
    this.a = arrayOfot2;
    this.d = arrayOfot3;
    this.e = i;
  }
  
  public pi(Map.Entry<?, ?>[] paramArrayOfEntry)
  {
    int k = paramArrayOfEntry.length;
    int i = oo.a(k, 1.2D);
    this.b = (i - 1);
    ot[] arrayOfot1 = new ot[i];
    ot[] arrayOfot2 = new ot[i];
    ot[] arrayOfot3 = new ot[k];
    int j = 0;
    i = 0;
    if (j < k)
    {
      Map.Entry<?, ?> localEntry = paramArrayOfEntry[j];
      Object localObject2 = localEntry.getKey();
      Object localObject3 = localEntry.getValue();
      nj.a(localObject2, localObject3);
      int m = localObject2.hashCode();
      int n = localObject3.hashCode();
      int i1 = oo.a(m) & this.b;
      int i2 = oo.a(n) & this.b;
      ot localot1 = arrayOfot1[i1];
      Object localObject1 = localot1;
      boolean bool;
      if (localObject1 != null)
      {
        if (!localObject2.equals(((ot)localObject1).getKey())) {}
        for (bool = true;; bool = false)
        {
          a(bool, "key", localEntry, (Map.Entry)localObject1);
          localObject1 = ((ot)localObject1).a();
          break;
        }
      }
      ot localot2 = arrayOfot2[i2];
      localObject1 = localot2;
      if (localObject1 != null)
      {
        if (!localObject3.equals(((ot)localObject1).getValue())) {}
        for (bool = true;; bool = false)
        {
          a(bool, "value", localEntry, (Map.Entry)localObject1);
          localObject1 = ((ot)localObject1).b();
          break;
        }
      }
      if ((localot1 == null) && (localot2 == null)) {}
      for (localObject1 = new ot.a(localObject2, localObject3);; localObject1 = new pi.c(localObject2, localObject3, localot1, localot2))
      {
        arrayOfot1[i1] = localObject1;
        arrayOfot2[i2] = localObject1;
        arrayOfot3[j] = localObject1;
        j += 1;
        i += (m ^ n);
        break;
      }
    }
    this.c = arrayOfot1;
    this.a = arrayOfot2;
    this.d = arrayOfot3;
    this.e = i;
  }
  
  public pi(ot.a<?, ?>... paramVarArgs)
  {
    this(paramVarArgs.length, paramVarArgs);
  }
  
  final boolean b()
  {
    return false;
  }
  
  final ImmutableSet<Map.Entry<K, V>> d()
  {
    new ou()
    {
      final ImmutableMap<K, V> b()
      {
        return pi.this;
      }
      
      final ImmutableList<Map.Entry<K, V>> c()
      {
        return new ph(this, pi.a(pi.this));
      }
      
      final boolean c_()
      {
        return true;
      }
      
      public final int hashCode()
      {
        return pi.b(pi.this);
      }
      
      public final UnmodifiableIterator<Map.Entry<K, V>> iterator()
      {
        return asList().iterator();
      }
    };
  }
  
  @Nullable
  public final V get(@Nullable Object paramObject)
  {
    if (paramObject == null) {}
    for (;;)
    {
      return null;
      int i = oo.a(paramObject.hashCode());
      int j = this.b;
      for (ot localot = this.c[(i & j)]; localot != null; localot = localot.a()) {
        if (paramObject.equals(localot.getKey())) {
          return (V)localot.getValue();
        }
      }
    }
  }
  
  public final ImmutableBiMap<V, K> inverse()
  {
    ImmutableBiMap localImmutableBiMap = this.f;
    Object localObject = localImmutableBiMap;
    if (localImmutableBiMap == null)
    {
      localObject = new pi.a((byte)0);
      this.f = ((ImmutableBiMap)localObject);
    }
    return (ImmutableBiMap<V, K>)localObject;
  }
  
  public final int size()
  {
    return this.d.length;
  }
  
  final class a
    extends ImmutableBiMap<V, K>
  {
    private a() {}
    
    final boolean b()
    {
      return false;
    }
    
    final ImmutableSet<Map.Entry<V, K>> d()
    {
      return new pi.a.a();
    }
    
    public final K get(@Nullable Object paramObject)
    {
      if (paramObject == null) {}
      for (;;)
      {
        return null;
        int i = oo.a(paramObject.hashCode());
        int j = pi.this.b;
        for (ot localot = pi.this.a[(i & j)]; localot != null; localot = localot.b()) {
          if (paramObject.equals(localot.getValue())) {
            return (K)localot.getKey();
          }
        }
      }
    }
    
    public final ImmutableBiMap<K, V> inverse()
    {
      return pi.this;
    }
    
    public final int size()
    {
      return inverse().size();
    }
    
    final Object writeReplace()
    {
      return new pi.b(pi.this);
    }
    
    final class a
      extends ou<V, K>
    {
      a() {}
      
      final ImmutableMap<V, K> b()
      {
        return pi.a.this;
      }
      
      final ImmutableList<Map.Entry<V, K>> c()
      {
        new op()
        {
          final ImmutableCollection<Map.Entry<V, K>> b()
          {
            return pi.a.a.this;
          }
        };
      }
      
      final boolean c_()
      {
        return true;
      }
      
      public final int hashCode()
      {
        return pi.b(pi.this);
      }
      
      public final UnmodifiableIterator<Map.Entry<V, K>> iterator()
      {
        return asList().iterator();
      }
    }
  }
  
  static final class b<K, V>
    implements Serializable
  {
    private static final long serialVersionUID = 1L;
    private final ImmutableBiMap<K, V> a;
    
    b(ImmutableBiMap<K, V> paramImmutableBiMap)
    {
      this.a = paramImmutableBiMap;
    }
    
    final Object readResolve()
    {
      return this.a.inverse();
    }
  }
  
  static final class c<K, V>
    extends ot<K, V>
  {
    @Nullable
    private final ot<K, V> a;
    @Nullable
    private final ot<K, V> b;
    
    c(K paramK, V paramV, @Nullable ot<K, V> paramot1, @Nullable ot<K, V> paramot2)
    {
      super(paramV);
      this.a = paramot1;
      this.b = paramot2;
    }
    
    c(ot<K, V> paramot1, @Nullable ot<K, V> paramot2, @Nullable ot<K, V> paramot3)
    {
      super();
      this.a = paramot2;
      this.b = paramot3;
    }
    
    @Nullable
    final ot<K, V> a()
    {
      return this.a;
    }
    
    @Nullable
    final ot<K, V> b()
    {
      return this.b;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/pi.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */