类的使用
cn.taketoday.util.function.SingletonSupplier
使用SingletonSupplier的程序包
-
cn.taketoday.util.function中SingletonSupplier的使用
修饰符和类型方法说明static <T> SingletonSupplier<T>Build aSingletonSupplierwith the given supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(Supplier<T> supplier) Build aSingletonSupplierwith the given supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(T instance) Build aSingletonSupplierwith the given singleton instance.static <T> SingletonSupplier<T>SingletonSupplier.valueOf(T instance) Build aSingletonSupplierwith the given singleton instance.