se.eris.notnull.AnnotationConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of notnull-instrumenter-maven-plugin Show documentation
Show all versions of notnull-instrumenter-maven-plugin Show documentation
NotNull annotations instrumenter maven plugin
package se.eris.notnull;
import org.jetbrains.annotations.NotNull;
import java.util.Collections;
import java.util.Set;
public class AnnotationConfiguration {
@NotNull
private final Set notNull;
@NotNull
private final Set nullable;
public AnnotationConfiguration(@NotNull final Set notNull, @NotNull final Set nullable) {
this.notNull = notNull;
this.nullable = nullable;
}
public AnnotationConfiguration() {
notNull = Collections.emptySet();
nullable = Collections.emptySet();
}
public boolean isAnnotationsConfigured() {
return !notNull.isEmpty() || !nullable.isEmpty();
}
@NotNull
public Set getNotNull() {
return notNull;
}
@NotNull
public Set getNullable() {
return nullable;
}
}