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

net.java.mavenincrementalbuild.utils.SetFileManager Maven / Gradle / Ivy

Go to download

The Maven Incremental Build plugin is a plugin that enable maven to recompile only what it have to when you call mvn compile (It is not necessary to call clean phase now).

The newest version!
package net.java.mavenincrementalbuild.utils;

import org.apache.maven.plugin.logging.Log;

import java.util.Set;
import java.util.TreeSet;

public class SetFileManager extends FilePersistence> {

    /**
     * Persist a list of string in a file
     *
     * @param logger    the current maven logger
     * @param directory the directory
     * @param name      the file name
     */
    public SetFileManager(Log logger, String directory, String name) {
        super(logger, directory, name);
        data = new TreeSet();
    }

    public boolean isEmpty() {
        return data.isEmpty();
    }

    public boolean contains(T value) {
        return data.contains(value);
    }

    public void add(T value) {
        data.add(value);
    }

    public boolean remove(T value) {
        return data.remove(value);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy