Interface OMSupplier<T,E extends Exception>

Type Parameters:
T - 결과 type
E - 던질 수 있는 exception type
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 OMSupplier<T,E extends Exception>
checked exception 을 던질 수 있는 Supplier.

https://www.oreilly.com/content/handling-checked-exceptions-in-java-streams/

  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    결과를 구한다.
  • Method Details

    • get

      T get() throws E
      결과를 구한다.
      Returns:
      결과
      Throws:
      E - 결과를 구하는 중 오류가 발생한 경우