.class public abstract Lcom/google/common/cache/CacheLoader; .super Ljava/lang/Object; .source "CacheLoader.java" # annotations .annotation runtime Lcom/google/common/cache/ElementTypesAreNonnullByDefault; .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 .line 63 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 runtime Lcom/google/errorprone/annotations/CheckReturnValue; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/cache/CacheLoader<", "TK;TV;>;", "Ljava/util/concurrent/Executor;", ")", "Lcom/google/common/cache/CacheLoader<", "TK;TV;>;" } .end annotation .line 189 invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 190 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 191 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 runtime Lcom/google/errorprone/annotations/CheckReturnValue; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Function<", "TK;TV;>;)", "Lcom/google/common/cache/CacheLoader<", "TK;TV;>;" } .end annotation .line 143 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 runtime Lcom/google/errorprone/annotations/CheckReturnValue; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Supplier<", "TV;>;)", "Lcom/google/common/cache/CacheLoader<", "Ljava/lang/Object;", "TV;>;" } .end annotation .line 157 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 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/Exception; } .end annotation .end method .method public loadAll(Ljava/lang/Iterable;)Ljava/util/Map; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "+TK;>;)", "Ljava/util/Map<", "TK;TV;>;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/Exception; } .end annotation .line 130 new-instance p0, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException; invoke-direct {p0}, Lcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException;->()V throw p0 .end method .method public reload(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;)", "Lcom/google/common/util/concurrent/ListenableFuture<", "TV;>;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/Exception; } .end annotation .line 100 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 101 invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 102 invoke-virtual {p0, p1}, Lcom/google/common/cache/CacheLoader;->load(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 invoke-static {p0}, Lcom/google/common/util/concurrent/Futures;->immediateFuture(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; move-result-object p0 return-object p0 .end method