| java.lang.Object |
| ↳ |
com.facebook.common.internal.Suppliers |
Class Overview
Wrapper for creating a Supplier and default Suppliers for convenience.
Summary
| Public Methods |
|
static
<T>
Supplier<T>
|
of(T instance)
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 Methods
public
static
Supplier<T>
of
(T instance)
Returns a Supplier which always returns instance.
Parameters
| instance |
the instance that should always be provided.
|