Class Suppliers


  • public class Suppliers
    extends java.lang.Object
    Helps use Supplier.
    Since:
    3.13.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Suppliers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T get​(java.util.function.Supplier<T> supplier)
      Null-safe call to Supplier.get().
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Suppliers

        public Suppliers()
    • Method Detail

      • get

        public static <T> T get​(java.util.function.Supplier<T> supplier)
        Null-safe call to Supplier.get().
        Type Parameters:
        T - the type of results supplied by this supplier.
        Parameters:
        supplier - the supplier or null.
        Returns:
        Result of Supplier.get() or null.