public class

Suppliers

extends Object
java.lang.Object
   ↳ com.facebook.common.internal.Suppliers

Class Overview

Wrapper for creating a Supplier.

Summary

Public Constructors
Suppliers()
Public Methods
static <T> Supplier<T> of(T instance)
Returns a Supplier which always returns instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Suppliers ()

Public Methods

public static Supplier<T> of (T instance)

Returns a Supplier which always returns instance.

Parameters
instance the instance that should always be provided.