| Modifier and Type | Method and Description |
|---|---|
static <D,T> Supplier<T> |
fromFunction(D input,
Function<D,T> function)
A
Supplier that asks the argument function for
the result using the input argument. |
static <T> Supplier<T> |
memoize(T source)
A
Supplier that always returns the supplied
source. |
static <T> Callable<T> |
toCallable(Supplier<T> supplier)
|
public static <T> Supplier<T> memoize(T source)
Supplier that always returns the supplied
source.T - the typesource - the object that is always returned.public static <D,T> Supplier<T> fromFunction(D input, Function<D,T> function)
Supplier that asks the argument function for
the result using the input argument.D - the input typeT - the result typeinput - used as the argument when calling the function.function - asked to get the result.Copyright © 2024 Atlassian. All rights reserved.