Interface ThrowableSupplier<T>

Type Parameters:
T - the type of results supplied by this supplier
All Superinterfaces:
Supplier<T>

public interface ThrowableSupplier<T> extends Supplier<T>
Supplier but returns null if there is an exception
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
     
    Get a result with exceptions
  • Method Details

    • get

      default T get()
      Specified by:
      get in interface Supplier<T>
    • getSafe

      T getSafe() throws Throwable
      Get a result with exceptions
      Returns:
      a result
      Throws:
      Throwable - the exception