Package io.blt.util.functional
Interface ThrowingFunction<T,R,E extends Throwable>
- Type Parameters:
T
- the type of argument consumed by this functionR
- the type of results returned by this functionE
- the type ofThrowable
that may be thrown by this function
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a function that may throw and accepts one argument and produces a result.
Like Function
but able to throw an exception
- See Also:
-
Method Summary
-
Method Details
-
apply
Applies this function to the given argument.- Parameters:
t
- the function argument- Returns:
- the function result
- Throws:
E
-Throwable
that may be thrown- See Also:
-