Package at.jku.ssw.fp.sect02_3
Class Demo2_LambdaWithExceptions
- java.lang.Object
-
- at.jku.ssw.fp.sect02_3.Demo2_LambdaWithExceptions
-
public class Demo2_LambdaWithExceptions extends Object
Demos showing lambda expressions with exceptions.- Author:
- Herbert Praehofer
-
-
Constructor Summary
Constructors Constructor Description Demo2_LambdaWithExceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static <T,R>
RapplyFunction(Function<? super T,? extends R> fn, T obj)
(package private) static <T,R,X extends Exception>
RapplyFunctionWithExcpt(FunctionWithExcpt<T,R,X> fn, T obj)
static void
main(String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
applyFunction
static <T,R> R applyFunction(Function<? super T,? extends R> fn, T obj)
-
applyFunctionWithExcpt
static <T,R,X extends Exception> R applyFunctionWithExcpt(FunctionWithExcpt<T,R,X> fn, T obj) throws X extends Exception
- Throws:
X extends Exception
-
-