类 SupplierUtils

    • 方法详细资料

      • resolve

        @Nullable
        public static <T> T resolve​(@Nullable
                                    Supplier<T> supplier)
        Resolve the given Supplier, getting its result or immediately returning null if the supplier itself was null.
        参数:
        supplier - the supplier to resolve
        返回:
        the supplier's result, or null if none