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

com.iwillfailyou.AllfinalSettings Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy