Class SupplierUtils

    • Method Detail

      • 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.
        Parameters:
        supplier - the supplier to resolve
        Returns:
        the supplier's result, or null if none