Package com.easydesk.util.function
Interface OMFunction<T,R,E extends Exception>
- Type Parameters:
T- 입력 typeR- 결과 typeE- 던질 수 있는 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.
checked exception 을 던질 수 있는 Function.
https://www.oreilly.com/content/handling-checked-exceptions-in-java-streams/
-
Method Summary
Modifier and TypeMethodDescriptionDOCUMENT ME!functionWrapper(OMFunction<T, R, E> function) OMFunction을Function으로 감싼다.
-
Method Details
-
apply
DOCUMENT ME!- Parameters:
t- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
E- DOCUMENT ME!
-
functionWrapper
OMFunction을Function으로 감싼다. 발생한 예외는 RuntimeException 으로 감싸서 던진다.- Type Parameters:
T- 입력 typeR- 결과 typeE- 던질 수 있는 exception type- Parameters:
function- 감쌀 function- Returns:
- Function
-