asSupplier

open fun <T> asSupplier(@NotNull t: @NotNull T): @NotNull Supplier<T>

Makes constant value as supplier.

Return

supplier that returns always the same object.

Parameters

t

value

<T>

supplier