com.iwillfailyou.NullfreeSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iwillfailyou-maven-plugin Show documentation
Show all versions of iwillfailyou-maven-plugin Show documentation
Iwillfailyou - is the plugin for failing not elegant projects
package com.iwillfailyou;
import java.util.Arrays;
import java.util.List;
public final class NullfreeSettings {
private final List skipComparisions;
private final List threshold;
public NullfreeSettings() {
this(
Arrays.asList(false),
Arrays.asList(0)
);
}
public NullfreeSettings(
final List skipComparisions,
final List threshold
) {
this.skipComparisions = skipComparisions;
this.threshold = threshold;
}
public boolean getSkipComparisions() {
return skipComparisions.get(0);
}
public void setSkipComparisions(final boolean skipComparisions) {
this.skipComparisions.set(0, skipComparisions);
}
public int getThreshold() {
return threshold.get(0);
}
public int setThreshold(final int threshold) {
return this.threshold.set(0, threshold);
}
}