Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
static <O> Supplier<O> |
cache(Supplier<O> 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 <O> Supplier<O> |
forObject(O in)
Creates a supplier that always returns the given object.
|
public static <O> Supplier<O> forObject(O in)
in
-