com.iwillfailyou.AllfinalSettings 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 AllfinalSettings {
private final List threshold;
private final List skipInterfaceMethodParams;
private final List skipLambdaParams;
public AllfinalSettings() {
this(
Arrays.asList(0),
Arrays.asList(true),
Arrays.asList(false)
);
}
public AllfinalSettings(
final List threshold,
final List skipInterfaceMethodParams,
final List skipLambdaParams
) {
this.threshold = threshold;
this.skipInterfaceMethodParams = skipInterfaceMethodParams;
this.skipLambdaParams = skipLambdaParams;
}
public int getThreshold() {
return threshold.get(0);
}
public void setThreshold(final int threshold) {
this.threshold.set(0, threshold);
}
public boolean getSkipInterfaceMethodParams() {
return skipInterfaceMethodParams.get(0);
}
public void setSkipInterfaceMethodParams(final boolean skipInterfaceMethodParams) {
this.skipInterfaceMethodParams.set(0, skipInterfaceMethodParams);
}
public boolean getSkipLambdaParams() {
return skipLambdaParams.get(0);
}
public void setSkipLambdaParams(final boolean skipLambdaParams) {
this.skipLambdaParams.set(0, skipLambdaParams);
}
}