pu.java 1.84 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.ImmutableBiMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Maps;
import java.util.Map.Entry;
import javax.annotation.Nullable;

@GwtCompatible(emulated=true, serializable=true)
public final class pu<K, V>
  extends ImmutableBiMap<K, V>
{
  final transient K a;
  final transient V b;
  transient ImmutableBiMap<V, K> c;
  
  public pu(K paramK, V paramV)
  {
    nj.a(paramK, paramV);
    this.a = paramK;
    this.b = paramV;
  }
  
  private pu(K paramK, V paramV, ImmutableBiMap<V, K> paramImmutableBiMap)
  {
    this.a = paramK;
    this.b = paramV;
    this.c = paramImmutableBiMap;
  }
  
  final boolean b()
  {
    return false;
  }
  
  final ImmutableSet<K> c()
  {
    return ImmutableSet.of(this.a);
  }
  
  public final boolean containsKey(@Nullable Object paramObject)
  {
    return this.a.equals(paramObject);
  }
  
  public final boolean containsValue(@Nullable Object paramObject)
  {
    return this.b.equals(paramObject);
  }
  
  final ImmutableSet<Map.Entry<K, V>> d()
  {
    return ImmutableSet.of(Maps.immutableEntry(this.a, this.b));
  }
  
  public final V get(@Nullable Object paramObject)
  {
    if (this.a.equals(paramObject)) {
      return (V)this.b;
    }
    return null;
  }
  
  public final ImmutableBiMap<V, K> inverse()
  {
    ImmutableBiMap localImmutableBiMap = this.c;
    Object localObject = localImmutableBiMap;
    if (localImmutableBiMap == null)
    {
      localObject = new pu(this.b, this.a, this);
      this.c = ((ImmutableBiMap)localObject);
    }
    return (ImmutableBiMap<V, K>)localObject;
  }
  
  public final int size()
  {
    return 1;
  }
}


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