.class public Lcom/facebook/datasource/DataSources; .super Ljava/lang/Object; .source "DataSources.java" # direct methods .method private constructor ()V .locals 0 .prologue invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static getFailedDataSourceSupplier(Ljava/lang/Throwable;)Lcom/facebook/common/internal/Supplier; .locals 1 .param p0, "failure" # Ljava/lang/Throwable; .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Throwable;", ")", "Lcom/facebook/common/internal/Supplier", "<", "Lcom/facebook/datasource/DataSource", ";>;" } .end annotation .prologue new-instance v0, Lcom/facebook/datasource/DataSources$1; invoke-direct {v0, p0}, Lcom/facebook/datasource/DataSources$1;->(Ljava/lang/Throwable;)V return-object v0 .end method .method public static immediateDataSource(Ljava/lang/Object;)Lcom/facebook/datasource/DataSource; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)", "Lcom/facebook/datasource/DataSource", ";" } .end annotation .prologue .local p0, "result":Ljava/lang/Object;, "TT;" invoke-static {}, Lcom/facebook/datasource/SimpleDataSource;->create()Lcom/facebook/datasource/SimpleDataSource; move-result-object v0 .local v0, "simpleDataSource":Lcom/facebook/datasource/SimpleDataSource;, "Lcom/facebook/datasource/SimpleDataSource;" invoke-virtual {v0, p0}, Lcom/facebook/datasource/SimpleDataSource;->setResult(Ljava/lang/Object;)Z return-object v0 .end method .method public static immediateFailedDataSource(Ljava/lang/Throwable;)Lcom/facebook/datasource/DataSource; .locals 1 .param p0, "failure" # Ljava/lang/Throwable; .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Throwable;", ")", "Lcom/facebook/datasource/DataSource", ";" } .end annotation .prologue invoke-static {}, Lcom/facebook/datasource/SimpleDataSource;->create()Lcom/facebook/datasource/SimpleDataSource; move-result-object v0 .local v0, "simpleDataSource":Lcom/facebook/datasource/SimpleDataSource;, "Lcom/facebook/datasource/SimpleDataSource;" invoke-virtual {v0, p0}, Lcom/facebook/datasource/SimpleDataSource;->setFailure(Ljava/lang/Throwable;)Z return-object v0 .end method