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

com.fillumina.performance.producer.suite.ParametrizedRunnable Maven / Gradle / Ivy

Go to download

Configurable tool to easily compare performances of different code snippets and to take performance telemetry of a running application.

The newest version!
package com.fillumina.performance.producer.suite;

/**
 * Passes a parameter to the code under test.
 *
 * @author Francesco Illuminati
 */
public abstract class ParametrizedRunnable

{ public static final ParametrizedRunnable NULL = new ParametrizedRunnable() { @Override public void call(final Object param) { // do nothing; } }; /** Called before each test to initialize the {@code param}. */ public void setUp(P param) {} /** Contains the test. */ public abstract void call(P param); }