Interface to be used by future.transform. @param the type of the future value. @param the result type of the transformation.
| 7 | * @param <U> the result type of the transformation. |
| 8 | */ |
| 9 | public interface Transformer<T, U> { |
| 10 | |
| 11 | /** |
| 12 | * Transformation called when the future completes with a failure. |
| 13 | * |
| 14 | * @param ex the failure. |
| 15 | * @return the transformed value. |
| 16 | */ |
| 17 | public U onException(Throwable ex); |
| 18 | |
| 19 | /** |
| 20 | * Transformation called when the future completes with a value. |
| 21 | * |
| 22 | * @param value the value. |
| 23 | * @return the transformed value. |
| 24 | */ |
| 25 | public U onValue(T value); |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…