BrightSide Workbench Full Report + Source Code
org.turro.cleanup.CleanupAction Class Reference

Public Member Functions

void execute (ICleanupConsole console, CleanupMode mode)
 
 CleanupAction (String message, Runnable action)
 

Static Public Member Functions

static CleanupAction from (String message, Runnable action)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file CleanupAction.java.

Constructor & Destructor Documentation

◆ CleanupAction()

org.turro.cleanup.CleanupAction.CleanupAction ( String  message,
Runnable  action 
)

Definition at line 43 of file CleanupAction.java.

43  {
44  this.message = message;
45  this.action = action;
46  }
Here is the caller graph for this function:

Member Function Documentation

◆ execute()

void org.turro.cleanup.CleanupAction.execute ( ICleanupConsole  console,
CleanupMode  mode 
)

Definition at line 29 of file CleanupAction.java.

29  {
30  if(console != null && mode.isMessage()) console.addMessage(" > " + message);
31  if(mode.isExecute()) action.run();
32  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ from()

static CleanupAction org.turro.cleanup.CleanupAction.from ( String  message,
Runnable  action 
)
static

Definition at line 36 of file CleanupAction.java.

36  {
37  return new CleanupAction(I_.get(message), action);
38  }
CleanupAction(String message, Runnable action)
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: