public class

Suppliers

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

Class Overview

Wrapper for creating a Supplier and default Suppliers for convenience.

Summary

Fields
public static final Supplier<Boolean> BOOLEAN_FALSE Boolean supplier that always returns false.
public static final Supplier<Boolean> BOOLEAN_TRUE Boolean supplier that always returns true.
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

Fields

public static final Supplier<Boolean> BOOLEAN_FALSE

Boolean supplier that always returns false.

public static final Supplier<Boolean> BOOLEAN_TRUE

Boolean supplier that always returns true.

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.