![JAR search and dependency download from the Maven repository](/logo.png)
io.getunleash.strategy.Strategy 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
package io.getunleash.strategy;
import io.getunleash.Constraint;
import io.getunleash.UnleashContext;
import java.util.List;
import java.util.Map;
public interface Strategy {
String getName();
boolean isEnabled(Map parameters);
default boolean isEnabled(Map parameters, UnleashContext unleashContext) {
return isEnabled(parameters);
}
default boolean isEnabled(
Map parameters,
UnleashContext unleashContext,
List constraints) {
return ConstraintUtil.validate(constraints, unleashContext)
&& isEnabled(parameters, unleashContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy