Back to Fresco

Suppliers

docs/javadoc/reference/com/facebook/common/internal/Suppliers.html

3.6.012.7 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Fields | Ctors | Methods | Inherited Methods | [Expand All]

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>
public static final Supplier<Boolean>
Public Constructors
Public Methods
static <T> Supplier<T>
Returns a Supplier which always returns instance.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

|

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. |

+Generated by Doclava. +