S
- The argument type for the function.T
- The return type for the function.E
- The exception type that the function throws.public interface ExceptionalFunction<S,T,E extends java.lang.Exception>
Modifier and Type | Method and Description |
---|---|
T |
apply(S item)
Performs a unit of work on item, possibly throwing
E in the process. |
T apply(S item) throws E extends java.lang.Exception
E
in the process.item
- The item to perform work against.E
- if there was a problem performing the work.E extends java.lang.Exception
Copyright © 2007-2017 The Apache Software Foundation