io.getunleash.EvaluatedToggle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unleash-client-java Show documentation
Show all versions of unleash-client-java Show documentation
A client library for Unleash
The 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;
}
}