SingleRunAction

public void SingleRunAction(Runnable runnable)

This creates a new SingleRunAction with a Runnable containing the code to be run for this action. The name is a slight bit misleading, as this can actually be run multiple times. However, the run() method only runs once before the reset() method needs to be called to allow the SingleRunAction to run again.

Parameters

runnable

This is a Runnable containing the code to be run. Preferably, use lambda statements.