I
- the type of the input to the calculationO
- the type of the output of the calculationpublic interface Computable<I,O>
Definition of an interface for a wrapper around a calculation that takes a single parameter and returns a result.
This interface allows for wrapping a calculation into a class so that it maybe passed around an application.
Modifier and Type | Method and Description |
---|---|
O |
compute(I arg)
This method carries out the given operation with the provided argument.
|
O compute(I arg) throws InterruptedException
arg
- the argument for the calculationInterruptedException
- thrown if the calculation is interruptedCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.