All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.gradleplugins.runnerkit.providers.BeforeExecuteActionsProvider Maven / Gradle / Ivy

There is a newer version: 0.0.148
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy