com.configcat.EvaluationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configcat-java-client Show documentation
Show all versions of configcat-java-client Show documentation
Java SDK for ConfigCat, a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.
The newest version!
package com.configcat;
import java.util.List;
import java.util.Map;
class EvaluationContext {
public EvaluationContext(String key, User user, List visitedKeys, Map settings) {
this.key = key;
this.user = user;
this.visitedKeys = visitedKeys;
this.settings = settings;
}
private String key;
private User user;
private final List visitedKeys;
private final Map settings;
private boolean isUserMissing = false;
private boolean isUserAttributeMissing = false;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public void setUserMissing(boolean userMissing) {
isUserMissing = userMissing;
}
public void setUserAttributeMissing(boolean userAttributeMissing) {
isUserAttributeMissing = userAttributeMissing;
}
public List getVisitedKeys() {
return visitedKeys;
}
public Map getSettings() {
return settings;
}
public boolean isUserMissing() {
return isUserMissing;
}
public boolean isUserAttributeMissing() {
return isUserAttributeMissing;
}
}