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

io.getunleash.EvaluatedToggle Maven / Gradle / Ivy

There is a newer version: 9.2.4
Show newest version
package io.getunleash;

import io.getunleash.lang.Nullable;

public class EvaluatedToggle {
    private final boolean enabled;
    private final String name;
    @Nullable private final Variant variant;

    public EvaluatedToggle(String name, boolean enabled, @Nullable Variant variant) {
        this.enabled = enabled;
        this.name = name;
        this.variant = variant;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public String getName() {
        return name;
    }

    @Nullable
    public Variant getVariant() {
        return variant;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy