Interface ThrowingSupplier<T>

Type Parameters:
T - the type of supplied results
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ThrowingSupplier<T>
Equivalent of Supplier whose get() method may throw a checked Exception.

This interface helps to avoid depending on framework-specific throwing functional interfaces in Fluxzero APIs.

  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Gets a result.
  • Method Details

    • get

      T get() throws Exception
      Gets a result.
      Returns:
      a result
      Throws:
      Exception - if unable to supply a result