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 java.lang.InterruptedException
arg
- the argument for the calculationjava.lang.InterruptedException
- thrown if the calculation is interrupted"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"