mm$l.java 1.69 KB
import com.google.common.base.Preconditions;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.collect.ImmutableMap;
import com.google.common.util.concurrent.UncheckedExecutionException;
import java.util.concurrent.ExecutionException;

public final class mm$l<K, V>
  extends mm.m<K, V>
  implements LoadingCache<K, V>
{
  private static final long serialVersionUID = 1L;
  
  public mm$l(CacheBuilder<? super K, ? super V> paramCacheBuilder, CacheLoader<? super K, V> paramCacheLoader)
  {
    super(new mm(paramCacheBuilder, (CacheLoader)Preconditions.checkNotNull(paramCacheLoader)), (byte)0);
  }
  
  public final V apply(K paramK)
  {
    return (V)getUnchecked(paramK);
  }
  
  public final V get(K paramK)
    throws ExecutionException
  {
    mm localmm = this.a;
    return (V)localmm.a(paramK, localmm.t);
  }
  
  public final ImmutableMap<K, V> getAll(Iterable<? extends K> paramIterable)
    throws ExecutionException
  {
    return this.a.a(paramIterable);
  }
  
  public final V getUnchecked(K paramK)
  {
    try
    {
      paramK = get(paramK);
      return paramK;
    }
    catch (ExecutionException paramK)
    {
      throw new UncheckedExecutionException(paramK.getCause());
    }
  }
  
  public final void refresh(K paramK)
  {
    mm localmm = this.a;
    int i = localmm.a(Preconditions.checkNotNull(paramK));
    localmm.a(i).a(paramK, i, localmm.t, false);
  }
  
  final Object writeReplace()
  {
    return new mm.j(this.a);
  }
}


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