Interface SafeSupplier<T>

Type Parameters:
T - The type of the value.

public interface SafeSupplier<T>
A functional interface that can be used to get a value, and throw an exception if an error occurs.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Get a value.
  • Method Details

    • get

      T get() throws Throwable
      Get a value.
      Returns:
      The value.
      Throws:
      Throwable - If an error occurs.