Package e.java

Interface UnsafeSupplier<A>

Type Parameters:
A - Type of value to be supplied
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 UnsafeSupplier<A>
A helper functional interface marking a value to be supplied in an unsafe way
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Gets a value in an unsafe way
  • Method Details

    • get

      A get() throws Throwable
      Gets a value in an unsafe way
      Returns:
      Value if nothing is thrown
      Throws:
      Throwable - If something goes wrong while getting the value