You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
427 B
Java
17 lines
427 B
Java
4 years ago
|
package com.github.stefanbirkner.systemlambda;
|
||
|
|
||
|
/**
|
||
|
* Code that should be executed by on of the methods of {@link SystemLambda}.
|
||
|
* This code may throw an {@link Exception}. Therefore we cannot use
|
||
|
* {@link Runnable}.
|
||
|
*/
|
||
|
public interface Statement {
|
||
|
|
||
|
/**
|
||
|
* Execute the statement.
|
||
|
*
|
||
|
* @throws Exception the statement may throw an arbitrary exception.
|
||
|
*/
|
||
|
void execute() throws Exception;
|
||
|
|
||
|
}
|