- Enclosing class:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface RestartableJenkinsRule.StepOne step to run, intended to be a SAM for lambdas with
Closuredoes not work because it is an abstract class, not an interface.
Voiddoes not work because you have to return null.
Runnabledoes not work because it throws no checked exceptions.
Consumeris the same, and is not present in Java 7. Other candidates had similar issues.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
void run(JenkinsRule r) throws Throwable