All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.peterphi.std.threading.ParamRunnableShell Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy