com.peterphi.std.threading.ParamRunnableShell Maven / Gradle / Ivy
package com.peterphi.std.threading;
/**
* The Runnable shell in which a ParamRunnable is wrapped once its prepare()
method is called
*
* @param
*/
public final class ParamRunnableShell implements Runnable
{
final ParamRunnable obj;
final T param;
protected ParamRunnableShell(ParamRunnable obj, T param)
{
this.obj = obj;
this.param = param;
}
@Override
public void run()
{
obj.run(param);
}
}