public class

DataSources

extends Object
java.lang.Object
   ↳ com.facebook.datasource.DataSources

Class Overview

Static utility methods pertaining to the DataSource interface.

Summary

Public Methods
static <T> Supplier<DataSource<T>> getFailedDataSourceSupplier(Throwable failure)
static <T> DataSource<T> immediateDataSource(T result)
static <T> DataSource<T> immediateFailedDataSource(Throwable failure)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Supplier<DataSource<T>> getFailedDataSourceSupplier (Throwable failure)

public static DataSource<T> immediateDataSource (T result)

public static DataSource<T> immediateFailedDataSource (Throwable failure)