Module io.jenetics.base
Package io.jenetics.internal.util
Interface Lifecycle.ThrowingFunction<A,R,E extends Exception>
- Type Parameters:
A
- the argument typeR
- the return typeE
- the exception type
- Enclosing class:
- Lifecycle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function which takes an argument and can throw an exception.
-
Method Summary
-
Method Details
-
apply
Applies this function to the given argument.- Parameters:
arg
- the function argument- Returns:
- the function result
- Throws:
E
- if an error occurs while applying the function
-