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

se.eris.notnull.ExcludeConfiguration Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package se.eris.notnull;

import se.eris.notnull.instrumentation.ClassMatcher;

import java.util.HashSet;
import java.util.Set;

public class ExcludeConfiguration {

    private final Set exclude;

    public ExcludeConfiguration(final Set exclude) {
        this.exclude = new HashSet<>(exclude);
    }

    public boolean isClassImplicitInstrumentation(final CharSequence className) {
        for (final ClassMatcher classMatcher : exclude) {
            if (classMatcher.matches(className)) {
                return false;
            }
        }
        return true;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy