java.util.function · java.base · since Java 1.8

Supplier

declaration
@FunctionalInterface
public interface Supplier<T>

() → T lazy producer: deferred construction, defaults (orElseGet), factories, and memoization building block.

Key methods

T get()Produce the value — evaluated only when called (the whole point).