dev.gradleplugins.runnerkit.providers.BeforeExecuteActionsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-runner-kit-impl Show documentation
Show all versions of gradle-runner-kit-impl Show documentation
Gradle runner kit implementation.
package dev.gradleplugins.runnerkit.providers;
import dev.gradleplugins.runnerkit.GradleRunner;
import lombok.val;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.UnaryOperator;
public final class BeforeExecuteActionsProvider extends AbstractGradleExecutionProvider>> {
public static BeforeExecuteActionsProvider empty() {
return fixed(BeforeExecuteActionsProvider.class, Collections.emptyList());
}
public BeforeExecuteActionsProvider plus(UnaryOperator action) {
val result = new ArrayList>();
result.addAll(get());
result.add(action);
return fixed(BeforeExecuteActionsProvider.class, result);
}
}