public static class Supplier.Factory
extends java.lang.Object
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
static Supplier |
cache(Supplier in)
Creates a supplier that defers creating the object until it is needed, and then will always
return the same object for future calls to get().
|
static Supplier |
forObject(java.lang.Object in)
Creates a supplier that always returns the given object.
|
public static Supplier forObject(java.lang.Object in)
in
-