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

global.namespace.truelicense.build.tasks.generation.PathSet Maven / Gradle / Ivy

package global.namespace.truelicense.build.tasks.generation;

import global.namespace.neuron.di.java.Neuron;

import java.nio.file.Path;
import java.util.List;

import static global.namespace.neuron.di.java.CachingStrategy.NOT_THREAD_SAFE;
import static java.lang.String.join;

@SuppressWarnings("WeakerAccess")
@Neuron(cachingStrategy = NOT_THREAD_SAFE)
public abstract class PathSet {

    public abstract Path directory();

    public abstract List excludes();

    public abstract List includes();

    public String toString() {
        return  "{ \"directory\": " + directory() +
                ", \"includes\": [" + join(", ", includes()) + "]" +
                ", \"excludes\": [" + join(", ", excludes()) + "]" +
                "}";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy