public class

RetainingDataSourceSupplier

extends Object
implements Supplier<T>
java.lang.Object
   ↳ com.facebook.datasource.RetainingDataSourceSupplier<T>

Summary

Public Constructors
RetainingDataSourceSupplier()
Public Methods
DataSource<T> get()
Retrieves an instance of the appropriate type.
void replaceSupplier(Supplier<DataSource<T>> supplier)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.common.internal.Supplier

Public Constructors

public RetainingDataSourceSupplier ()

Public Methods

public DataSource<T> get ()

Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.

Returns
  • an instance of the appropriate type

public void replaceSupplier (Supplier<DataSource<T>> supplier)