.class public abstract Lcom/google/common/cache/CacheLoader; .super Ljava/lang/Object; .source "CacheLoader.java" # annotations .annotation build Lcom/google/common/annotations/GwtCompatible; emulated = true .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/cache/CacheLoader$InvalidCacheLoadException;, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException;, Lcom/google/common/cache/CacheLoader$SupplierToCacheLoader;, Lcom/google/common/cache/CacheLoader$FunctionToCacheLoader; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;" } .end annotation # direct methods .method protected constructor ()V .locals 0 .prologue .line 58 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static asyncReloading(Lcom/google/common/cache/CacheLoader;Ljava/util/concurrent/Executor;)Lcom/google/common/cache/CacheLoader; .locals 1 .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation build Lcom/google/common/annotations/GwtIncompatible; value = "Executor + Futures" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/cache/CacheLoader", ";", "Ljava/util/concurrent/Executor;", ")", "Lcom/google/common/cache/CacheLoader", ";" } .end annotation .prologue .line 184 invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 185 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 186 new-instance v0, Lcom/google/common/cache/CacheLoader$1; invoke-direct {v0, p0, p1}, Lcom/google/common/cache/CacheLoader$1;->(Lcom/google/common/cache/CacheLoader;Ljava/util/concurrent/Executor;)V return-object v0 .end method .method public static from(Lcom/google/common/base/Function;)Lcom/google/common/cache/CacheLoader; .locals 1 .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Function", ";)", "Lcom/google/common/cache/CacheLoader", ";" } .end annotation .prologue .line 138 new-instance v0, Lcom/google/common/cache/CacheLoader$FunctionToCacheLoader; invoke-direct {v0, p0}, Lcom/google/common/cache/CacheLoader$FunctionToCacheLoader;->(Lcom/google/common/base/Function;)V return-object v0 .end method .method public static from(Lcom/google/common/base/Supplier;)Lcom/google/common/cache/CacheLoader; .locals 1 .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Supplier", ";)", "Lcom/google/common/cache/CacheLoader", "<", "Ljava/lang/Object;", "TV;>;" } .end annotation .prologue .line 168 new-instance v0, Lcom/google/common/cache/CacheLoader$SupplierToCacheLoader; invoke-direct {v0, p0}, Lcom/google/common/cache/CacheLoader$SupplierToCacheLoader;->(Lcom/google/common/base/Supplier;)V return-object v0 .end method # virtual methods .method public abstract load(Ljava/lang/Object;)Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "(TK;)TV;" } .end annotation .end method .method public loadAll(Ljava/lang/Iterable;)Ljava/util/Map; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable", "<+TK;>;)", "Ljava/util/Map", ";" } .end annotation .prologue .line 125 new-instance v0, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException; invoke-direct {v0}, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException;->()V throw v0 .end method .method public reload(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; .locals 1 .annotation build Lcom/google/common/annotations/GwtIncompatible; value = "Futures" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;)", "Lcom/google/common/util/concurrent/ListenableFuture", ";" } .end annotation .prologue .line 95 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 96 invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 97 invoke-virtual {p0, p1}, Lcom/google/common/cache/CacheLoader;->load(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 invoke-static {v0}, Lcom/google/common/util/concurrent/Futures;->immediateFuture(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; move-result-object v0 return-object v0 .end method