org.apache.commons.lang3.function

## Class Suppliers

- java.lang.Object
- - org.apache.commons.lang3.function.Suppliers

-     public class Suppliers
      extends Object

  Helps use `Supplier`.
  Since:
    3.13.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Suppliers()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> T` | `get(Supplier<T> supplier)` Null-safe call to `Supplier.get()`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Suppliers

          public Suppliers()

  - ### Method Detail

    - #### get

          public static <T> T get(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.

Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.