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

com.iwillfailyou.NullfreeSettings 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 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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy