This commit is contained in:
Gary Gregory 2022-03-21 11:41:38 -04:00
parent 8218767894
commit 2252fade50
1 changed files with 5 additions and 1 deletions

View File

@ -16,14 +16,18 @@
*/
package org.apache.commons.lang3.concurrent;
import org.apache.commons.lang3.function.FailableFunction;
/**
* <p>Definition of an interface for a wrapper around a calculation that takes a single parameter and returns a result.</p>
*
* <p>This interface allows for wrapping a calculation into a class so that it maybe passed around an application.</p>
*
* <p>See also {@code FailableFunction<I, O, InterruptedException>}.</p>
*
* @param <I> the type of the input to the calculation
* @param <O> the type of the output of the calculation
*
* @see FailableFunction
* @since 3.6
*/
public interface Computable<I, O> {