mm$n.java 4.08 KB
import com.google.common.base.Equivalence;
import com.google.common.base.Preconditions;
import com.google.common.base.Ticker;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheBuilder.b;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.ForwardingCache;
import com.google.common.cache.RemovalListener;
import com.google.common.cache.Weigher;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.concurrent.TimeUnit;

class mm$n<K, V>
  extends ForwardingCache<K, V>
  implements Serializable
{
  private static final long serialVersionUID = 1L;
  final mm.s b;
  final mm.s c;
  final Equivalence<Object> d;
  final Equivalence<Object> e;
  final long f;
  final long g;
  final long h;
  final Weigher<K, V> i;
  final int j;
  final RemovalListener<? super K, ? super V> k;
  final Ticker l;
  final CacheLoader<? super K, V> m;
  transient Cache<K, V> n;
  
  private mm$n(mm.s params1, mm.s params2, Equivalence<Object> paramEquivalence1, Equivalence<Object> paramEquivalence2, long paramLong1, long paramLong2, long paramLong3, Weigher<K, V> paramWeigher, int paramInt, RemovalListener<? super K, ? super V> paramRemovalListener, Ticker paramTicker, CacheLoader<? super K, V> paramCacheLoader)
  {
    this.b = params1;
    this.c = params2;
    this.d = paramEquivalence1;
    this.e = paramEquivalence2;
    this.f = paramLong1;
    this.g = paramLong2;
    this.h = paramLong3;
    this.i = paramWeigher;
    this.j = paramInt;
    this.k = paramRemovalListener;
    if (paramTicker != Ticker.systemTicker())
    {
      params1 = paramTicker;
      if (paramTicker != CacheBuilder.d) {}
    }
    else
    {
      params1 = null;
    }
    this.l = params1;
    this.m = paramCacheLoader;
  }
  
  mm$n(mm<K, V> parammm)
  {
    this(parammm.h, parammm.i, parammm.f, parammm.g, parammm.m, parammm.l, parammm.j, parammm.k, parammm.e, parammm.p, parammm.q, parammm.t);
  }
  
  private void readObject(ObjectInputStream paramObjectInputStream)
    throws IOException, ClassNotFoundException
  {
    paramObjectInputStream.defaultReadObject();
    this.n = a().build();
  }
  
  private Object readResolve()
  {
    return this.n;
  }
  
  final CacheBuilder<K, V> a()
  {
    CacheBuilder localCacheBuilder = CacheBuilder.newBuilder().a(this.b).b(this.c);
    Equivalence localEquivalence = this.d;
    boolean bool;
    if (localCacheBuilder.p == null)
    {
      bool = true;
      Preconditions.checkState(bool, "key equivalence was already set to %s", new Object[] { localCacheBuilder.p });
      localCacheBuilder.p = ((Equivalence)Preconditions.checkNotNull(localEquivalence));
      localEquivalence = this.e;
      if (localCacheBuilder.q != null) {
        break label227;
      }
      bool = true;
      label74:
      Preconditions.checkState(bool, "value equivalence was already set to %s", new Object[] { localCacheBuilder.q });
      localCacheBuilder.q = ((Equivalence)Preconditions.checkNotNull(localEquivalence));
      localCacheBuilder = localCacheBuilder.concurrencyLevel(this.j).removalListener(this.k);
      localCacheBuilder.e = false;
      if (this.f > 0L) {
        localCacheBuilder.expireAfterWrite(this.f, TimeUnit.NANOSECONDS);
      }
      if (this.g > 0L) {
        localCacheBuilder.expireAfterAccess(this.g, TimeUnit.NANOSECONDS);
      }
      if (this.i == CacheBuilder.b.a) {
        break label232;
      }
      localCacheBuilder.weigher(this.i);
      if (this.h != -1L) {
        localCacheBuilder.maximumWeight(this.h);
      }
    }
    for (;;)
    {
      if (this.l != null) {
        localCacheBuilder.ticker(this.l);
      }
      return localCacheBuilder;
      bool = false;
      break;
      label227:
      bool = false;
      break label74;
      label232:
      if (this.h != -1L) {
        localCacheBuilder.maximumSize(this.h);
      }
    }
  }
  
  protected Cache<K, V> delegate()
  {
    return this.n;
  }
}


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